Supply and Demand in the Short Run
In the immediate term, a share price is determined by the same mechanism that sets the price of anything traded in a market: supply and demand. If more investors want to buy a stock than sell it, the price rises until sellers are willing to part with their shares. If more want to sell than buy, the price falls until buyers are attracted.
This short-run mechanism can be driven by news, rumour, sentiment, earnings surprises, analyst upgrades, social media trends, or simply the momentum of recent price moves. It is noisy, reactive, and frequently has little to do with any rational assessment of a company's underlying value.