Not being turned on

Whenever I masturbate, I tend to think of something I SHOULDNT, and then get turned off. Like, I think of a friend or school work and I’m like, how am I supposed to get horny when I keep having boring thoughts?! It’s ended many failed orgasms. Someone help with ideas of what they do please.