Depends, the company could buy back, or during a founding round, some part of that founding can be reserved to buy employee shares.
External investors are also allowed to buy from employees during this period.
Other private investors (typically institutional ones), or if the company has enough cash, the company itself.
Companies have buyback programs or you could sell them directly to other shareholders.