How is share price determined?

What factors influence a company’s share price in the stock market? How does demand and supply impact it?