Hi there...Erectile dysfunction may be due to many causes as many physiologic, hormonal, and psychogenic factors are involved in the ability to obtain and maintain erections... most of the times it will be psychological...So first try relaxation techniques and distraction method. Then try to cut down on any habits like alcohol, smoking or drugs. This will help delay ejaculation. If there's no improvement then you must be investigated for any comorbidities like
diabetes hypertension hypercholestrolemia...kindly consult a psychiatrist for medical therapy