Voluntary National Insurance contributions can be paid to plug gaps in your contributions record.
To receive the full single-tier pension (which is payable to individuals who reach state pension age on or after 6 April 2016), an individual needs 35 qualifying years.