If you are receiving Job Seekers Allowance whilst unemployed your contributions will be creditted automatically and you don't need to worry about it.
If not you can pay voluntary contributions to keep your record up and receive a full state pension. Current rate is �7.55 a week
As a male (presumably..) you currently need 44 years of contributions or credits to qualify for a full pension.
However there are moves afoot to reduce this to 30, so it looks as though you don't need to worry anyway.
Don't rush into a decision - get the 30 year rule confirmed more authoritatively than I can first.