You may still get a state pension if you have never paid National Insurance providing you have built up enough NI credits.
You can receive credits when you claim benefits such as Universal Credit or a Carer’s Allowance.