Money you'll need within about five years (a house deposit, a car, a wedding) generally belongs in savings, not the stock market. Money for goals ten or more years away, like retirement, is what investing is for. Write down each goal with a rough date.
This is general information, not personal financial advice. Consider speaking with a licensed financial adviser about your situation.