The stock market is where shares are bought and sold. It is not one building: it is a network of exchanges, such as the New York Stock Exchange and Nasdaq, that match buyers with sellers by computer in a fraction of a second.
Every trade has two sides. When you buy 10 shares, someone else is selling those 10 shares at that moment. The price you see is simply the most recent price a buyer and a seller agreed on.
You cannot trade on an exchange directly. You use a broker, a company with an app or website that holds your account and passes your orders along. The US market is open 9:30 to 16:00 New York time on weekdays and closed on weekends and holidays.
When people say 'the market is up today', they usually mean an index: a number that tracks a group of stocks. The S&P 500 follows about 500 large US companies, the Dow follows 30, and the Nasdaq leans toward technology.