Hi John,
The answer depends on the underlying cause of the erectile dysfunction. If it relates to a physical condition then a urologist is an obvious choice, although your family doctor may be just as capable of running a series of tests and providing treatment if the cause is found to be (for example) a deficiency.
If the underlying cause is felt to be psychological then a psychologist or a trained counselor might be the most appropriate person.
Hope this helps