Make sure there is actually ED and this is not just an isolated situation. A medical check-up is a reasonable starting place, especially if you are taking any medications or is receiving treatment for an ongoing medical problem. If it is age-related ED, seeing a urologist and discussing possible medications that can help would seem to be a reasonable way to go. But don't jump the gun.