You usually build up qualifying National Insurance contribution years if you are: in paid work, in full-time training, receiving certain benefits, or caring for someone for over 20 hours a week.
Source: How your State Pension is worked out @ NI Direct
Message supplied by: Rich @ Respect Yourself