Sorry to hear what you are going through just now. Sadly, it is NOT uncommon. This may just be (to a certain extent a natural part of ageing.
The causes of a erectile dysfunction can be physical, psychological or a mixture of the two.
The very first thing is to have a physical checkup. It is possible that your hormones are out of balance. It may be too that you are over-stressed and over-tired.
The commonest physical causes are:
Once any physical causes have been ruled out or dealt with, one can look at the psychological side.
What Can You do.
Begin by seeing your PCP/GP
If your doctor can't help, he or she can refer you to an appropriate specialist.
Best wishes, NormanM