Hi and welcome to the forum! I am glad that I can help you.
You want to know the cause of the symptoms that you experience.
Headache may appear in several medical conditions: increased blood pressure, migraine, sinusitis, increased intracranial pressure, etc. Migraine is a pulsating headache located on one or both sides of the head and usually there is an aura and symptoms such as sensitivity to sound and light. Increased intracranial pressure may appear in cases of meningitis and intracranial tumor.
According to the data that you described, you may or may not experience one of the medical conditions listed above. See a neurologist to exclude possible neurological medical conditions.
Please keep in mind that I provide medical information only. I am not able to diagnose medical conditions online. Please contact your doctor or other qualified health care provider such as a neurologist for further advice and information about diagnosis and treatment options.