Errection Deffect

Patient: Hi, im karthik i have married recently. My age is 24 years. I had intercourse with my partner for a weeek and nw im feeling very tired and when i try to have sex with my partner my errection goes off and my mind becomes blank and my body start sweating excessively. I start mastrubating at my age 18 and i stopped doing that for years. Is that mastrubation cause any trouble with my errection now or is there any medication to solve my problem

Doctor: