If the man has never ejaculated through any form of stimulation (such as wet dreams, masturbation, or intercourse) in his life, the doctor will check for a congenital or physical abnormality.
For ejaculatory problems that occur quite suddenly in men, who have not previously suffered from this problem, but who have recently been put on certain medications by their doctor, particularly anti-depressants, a change in medication may cure the problem.
Unfortunately in other cases these is no is instant cure, but treatment is available if couples are well motivated, and persevere with, what can be long term, therapy and counselling.