A normal natural reaction is to have morning wood, or an erection in the morning. This means that the penile system is usually working. Even if someone has morning wood, that doesn't mean they can't have Erectile Dysfunction (ED) at other times.
ED can be caused by many things, including worry, nervousness, relationship problems, health problems like diabetes or heart disease, drug side effects, or chemical changes. Even if you have an erection in the morning, these things can make it hard to get or keep an erection during sexual action.
It is important to talk to a doctor if someone has ED even though they have morning wood. They can figure out what's causing the problem, suggest the best way to treat it (like medicine, therapy, or changes to your lifestyle), and give personalized advice on how to improve erection function during sexual activity.