Go to the building you're interested in and look on the front for a piece of paper nailed to the wall. Walk up to it and press "A," and the purchase menu should appear.
From there you'll have a few options: buy the property and move in, or buy it and rent it out to earn income. Either way, owning property is a great way to build wealth in the game.