The causes may be diabetes,
high blood pressure, heart or thyroid conditions, poor circulation, low testosterone, depression, spinal cord and neurological causes.
To exactly pinpoint a diagnosis you need to get a complete examination done from a urologist and get your blood pressure, blood sugar levels, thyroid hormones, testosterone levels and a neurological examination of the testicles and penis done.
Hope that this information helps and hope that you get better soon.