How the share price of a company is decided

Who decides the company’s share price and how is it influenced by earnings and market sentiment?