The description of it as a headache being cured is not idiomatic. These are more idiomatic. Phrases in parentheses are optional: When he took the medicine, he felt better (because/as his headache went away).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.