Getting Myself Off

I have tried an uncountable amount of times to masturbate but I can't seem to get myself to orgasm. I've gone as long as 45 minutes. Even when I was with my ex me couldn't get me off either. Am I doing something wrong? Is something wrong with me?