Hi,
Male erection problem can have many health issues behind it and has to be thoroughly evaluated by a doctor. Blood circulatory problems, cardiac health, diabetes, hormone levels, general body weakness, psychological factors - can all lead to this symptom. So, please consult a doctor first and get it diagnosed early.
Solace
regular exercise, change in lifestyle, nutrition and all that will help greatly!!