If you leave your job before retirement and have met the 2 years vesting period
You will have built up an entitlement to a pension.
You will have two options in relation to that pension entitlement:
you can choose to keep your benefits in the LGPS. These are known as deferred benefits and will increase every year in line with the cost of living, or
alternatively, you may be able to transfer your deferred benefits to another pension arrangement.