Can't get or keep
The penis firm to achieve satisfactory intercourse with the partner. There are many causes; certain disease that affect the neurologic aspects of normal erectile function, or that affect the vascular aspects, or some medications for such problems as hypertension.
Fatigue, stresses, problems in the relationship are all common causes. After the pcp, urologist would be the specialist next.