Thanks for asking the query,
According to your clinical history headaches
can be due to sinusitis
or dental reasons like Bruxism habit of clenching the teeth unintentionally at night. This result in complications like toothwear, sensitivity, muscle spasms.
Other than this it can also be due to neurological problems.
I would suggest you to consult the Dentist
and get the thorough checkup done.
Take analgesics for temporay pain relief.
Maintain a good oral hygiene
, use antiseptic mouthwash gargles twice daily.
Hope this helps out.