During a part of my life, I was afraid of sex and the reason was my ego, my pride, which were telling me that I was not good enough, or that I could fail (I am a man).
It was hard to get over these kinds of thoughts. I had very embarrassing situations in which me and my penis were too shy to work, because of anxiety, especially when condoms were there among us. This was bad since I misunderstood the true causes of my anxieties and the poor condoms got the guilt. Consequently, I was having a lot of unprotected sex. This was like 10 years ago.
It took a lot of mental effort to get rid of my difficulties but now I have a normal sex life. The determinant point, which made me to cross the bridge, was that I simply gave a big fuck for life. I started to have sex with women, men, shemales, and all together, BDSM, doing enormous quantities of coke and alcohol.
So you need to find out your solution, because anxiety will fuck up your fucks.