You, or your employer - or a combination of both - will pay money into a pension and the final value will depend on the investment growth achieved by the money that is being invested.
If you are paying into a final salary pension scheme, the amount of money you receive when you retire will depend on your final salary and how long you have worked for the firm.