Hi G,
I'm afraid that - to put it simply - ESA, be it contributory or income-related, only makes NI credits on your behalf, it does not pay contributions which would entitle you to contributory benefits in future
Nothing on this board constitutes legal advice - always consult a professional about specific problems