Hi there ,
Welcome to Just answer !
Well, first of all let me clarify that ED is different from performance anxiety as ED can be due to medical as well as psychological causes including stress and Performance anxiety , BUT , you do not have ED , as you are able to get an erection , it is only when you get anxious and conscious about your performance during sexual intercourse that you loose an erection , so it is basically a psychological cause of Performance anxiety that is leading to all this , and it is certainly not ED.
So, i suggest that you get started on a mix of Drug therapy and psychotherapy ...
Psychotherapy that is counseling , you can seek from a psychologist who is well versed in Cognitive behavioural therapy ( CBT ) , which is a type of counseling technique which suits best for anxiety disorders like performance anxiety.
Secondly , along with CBT , you shall get 1 anti anxiety drug such as Buspar ( BUSPIRONE ) prescribed by your family doctor , and in advance i shall tell you that buspar unlike other anti anxiety drugs or anti depressant drugs does not have sexual side effects , and so is safe and very effective to be used to alleviate anxiety during performance.
So, a combination of CBT and Buspar will surely alleviate your performance anxiety , but this may take some time , say a month's time for full revival , but i believe the wait will be worth it.
I hope this helps..
I wish you all the best..