If you're looking to start investing, it pays to know the basics. Here's the rundown on what the stock market is, and why it rises and falls.