Hard to Orgasm

This may sound weird but I used to be able to orgasm very easily during sex. But then I stopped having sex, started watching porn, and masturbating regularly and now that I'm back with my old partner, it's so difficult for me to orgasm during actual sex. 
Has anyone been through this? How can fix this?