My brain constantly triggers when it sees pretty girls, and it makes me angry on myself and situation because of my inability to even get to know. As a result, I walk around obsessed with sex stuff, but I can't do anything about it.

I broke up with my girlfriend three months ago and haven't had sex since.
I'm not bad looking, I take care of myself, I make good money, but right now I'm just not confident and I don't know how to do it))

What advice can you give me in my case to have sex and not being angry and obsessed with it?