Welcome to HealthCareMagic ,
There are number of causes for erectile dysfunction
right from psychological level to diseases of nervous system,hormonal
, blockade of micro channels , sex related issues, and so on Treatment lies in correction of cause.
There are several medications for this condition if there is no underlying pathology in your case.
Please consult your local physician.