Hi, thank you for using health care magic.
I can understand your concern.
Do you have spontaneous night/morning erection? If yes then your problem should be more psychological then physical. If you do not have this spontaneous erection then this would be more physical probably doe to
diabetes also.
For psychological problem you should keep confidence as isolated loss of erection can occur to anyone. Try different position , role play, fantasy, sensate focus training this will help you to overcome loss of erection.
For physical cause you need to get doppler study of penis.This test evaluate the blood flow in penis. Medicine like
sildenafil, tadafil, alprostadil help in
erectile dysfunction of physical cause. For use of this medicine you need to
consult doctor as your heart functioning should be evaluated before starting this medicine.
Consultation with
psychiatrist would be most useful in psychological cause while physician/psychiatrist can help you out in physical cause of erectile dysfunction.
I hope my answer will help you.
Regards.