Is "Give me medicine for a headache" correct English? What natives actually hear
You meant What would you recommend for a headache?. But It sounds like a prescription order, which a pharmacist can't fill without one. is what actually reaches a native speaker's ear.
What you said vs what they heard
| You said | Give me medicine for a headache. |
| You meant | What would you recommend for a headache? |
| They heard | It sounds like a prescription order, which a pharmacist can't fill without one. |
| Say instead | What would you recommend for a headache? |
Why it lands differently
Nothing is wrong with the grammar of "Give me medicine for a headache." — the trouble is the message underneath. English listeners read between the lines, hearing a promise, a hedge, or a warning depending on the wording. In English pharmacies you describe the symptom and ask for a recommendation. Naming the drug gets you asked for a prescription.
The natural way to say it
The clean, natural version is What would you recommend for a headache?, meaning What would you recommend for a headache?. In real conversation the natural version is what fluent speakers reach for. Once you have heard it a few times, it replaces the literal version on its own.