Hello friend,
I need to warn u that taking drugs like viagra and confido without prescription from a trained professional ( Urologist / Andrologist) is neither advisable nor allowed.
Now, there are numerous reasons for erectile dysfunction. Most common, in a healthy young male like yourself, is psychogenic.
Psychogenic ed can be due to hot environment, anxiety, stress, not being attracted to partner, etc.
Other causes -
Arterial ed... insufficient blood flow to penile erectile tissue... Seen in elderly and diabetics
Neurogenic ed ... Due to damage to nerves supplying penis... Seen in diabetics and spine diseases/ trauma.
Friend I believe that you most probably have anxiety related psychogenic erectile dysfunction-- which is most easy to treat..
Next Steps
relax yourself, n give autosuggestions " I am ok, I am normal, it's temporary, relax " 4-5 times a day , preferably looking in a mirror.
it's ok to masturbate ( scientifically speaking) n it doesn't affect your body in any way... but u should ensure that u use sufficient amount of lubricant ( coconut oil with or without cold cream) on your hands to avoid skin abrasion/ pain during masturbation. lubrication will also increase your pleasure.
next, it is necessary that ur mind is relaxed n body cool while doing sex / masturbation
-- no fear of interruption by family members
-- cool temperature
-- romantic environment.. songs , adult film
-- not thinking about stressful issues in ur life while doing sex / masturbation
-- clean partner ( take shower before sex, clean genitals before and after )
all these will go a LONG way in improving ur performance !!! I am sure of it...
Health Tips
if these tips don't work, then try consulting an Andrologist/ Urologist