Thanks for the question. The major reason for erectile dysfunction may be due to psychological problems, like stress in relationship and performance pressure. It would be better to avoid smoking and drinking which would reduce much of your stress. It would be best to enjoy your sex rather than having anxiety about it is out come. You can bring change to your lifestyle by going for some meditation, yoga and healthy diet would help in reducing your stress.