How does the stock market work?

This brief video explains the working of a stock market.