A share is a piece of ownership
A stock, or share, is a unit of ownership in a company. If a company has a million shares and you own one, you own one millionth of that company. You do not own a particular desk or truck. You own a claim on the business as a whole.
Companies sell shares to raise money. The first sale to the public is an initial public offering. After that, shares trade between investors. The company does not receive the cash from those later trades. The buyer pays the seller.
What ownership does, and does not, give you
Common shareholders are last in line if a company is wound up. Lenders and bondholders are paid first. What is left, if anything, belongs to the owners. That is why a share can go to zero.
Ownership can also mean a vote on directors and large decisions, and a share of profits if the board declares a dividend. Neither is guaranteed. A company can earn a profit and still pay no dividend.
Price is not the same thing as the business
The price you see is the latest trade between a buyer and a seller. It can move because the business changed, or because people changed their minds, or because there were more sellers than buyers that hour. The price is a record of trades. It is not a promise of the next trade.