My head hurts by my ears. I've been listening to music in hweadphones?

Headphones. What type of headphones are you using—earbuds, on the ear, or over-the-ear cup style? On the ear one can compress the earlobe and cause pain. Any style that doesn't fir properly can eventually cause pain. Try alternating types and not wearing headphones for hours at a time. Tylenol/nsaid should ease pain; if not, see your pcp.