Silly question you may say! Of course you buy stocks via your broker or online using your brokerage account.
But
Its not necessarily that easy if you want to buy foreign stocks which you shouldnt really underestimate nor neglect. Theres a whole batch of foreign stocks out there...