This might be from an ear infection (middle more likely than external) or eustachian tube disorder. It could be trigeminal neuralgia or TMJ disorder. It may also be a migraine headache. Call your doctor if it persists.
While the list below can be considered as a guide to educate yourself about these conditions, this is not a substitute for a diagnosis from a health care provider. There are many other medical conditions that also can be associated with your symptoms and signs. Here are a number of those from MedicineNet:
Middle ear infection (otitis media) is inflammation of the middle ear. There are two forms of this type of ear infection, acute and chronic. Acute otitis media is generally short in duration, and chronic otitis media generally lasts several weeks. Babies, toddlers, and children with a middle ear infection may be irritable, pull and tug at their ears, and experience numerous other symptoms and signs. Treatment depends upon the type of ear infection.
Earwax (ear wax) is a natural substance secreted by special glands in the skin on the outer part of the ear canal. It repels water, and traps dust and sand particles. Usually a small amount of wax accumulates, dries up, and then falls out of the ear canal carrying with it unwanted particles. Under ideal circumstances, you should never have to clean your ear canals. The absence of ear wax may result in dry, itchy ears, and even infection. Ear wax may accumulate in the ear for a variety of reasons including; narrowing of the ear canal, production of less ear wax due to aging, or an overproduction of ear wax in response to trauma or blockage within the ear canal.
Ear Infection Home Treatment
Infections of the outer, middle, and inner ear usually are caused by viruses. Most outer (swimmer's ear) and middle ear (otitis media) infections can be treated at home with remedies like warm compresses for ear pain relief, tea tree, ginger, or garlic oil drops. Symptoms of an outer ear (swimmer's ear) and middle ear infection include mild to severe ear pain, pus draining from the ear, swelling and redness in the ear, and hearing problems. Middle and inner ear infections may cause fever, and balance problems. Inner ear infections also may cause nausea, vomiting, vertigo, ringing in the ear, and labyrinthitis (inflammation of the inner ear). Most outer and middle ear infections do not need antibiotics. Inner ear infections should be treated by a doctor specializing in ear and hearing problems.
Sinus infection (sinusitis) is caused by allergies, infection, and chemicals or other irritants of sinuses. Signs and symptoms are headache, fever, and facial tenderness, pressure, or pain. Treatments of sinus infections are generally with antibiotics and at times, home remedies.
At MedicineNet, we believe it is important to take charge of your health through measures such as a living healthy lifestyle, practicing preventative medicine, following a nutrition plan, and getting regular exercise. Understanding your symptoms and signs and educating yourself about health conditions are also a part of living your healthiest life. The links above will provide you with more detailed information on these medical conditions to help you inform yourself about the causes and available treatments for these conditions.