Thanks for using the forum. I am happy to address your questions, and my answer will be based on the information you provided here. Please make sure you recognize that this forum is for educational purposes only, and it does not substitute for a formal office visit with your doctor.
It sounds like you are having pains at the top of your head. Without the ability to review your medical history and examine you personally, I can not provide you with a diagnosis. However, I will try to describe to you some causes of intermittent headache.
There are several causes of headaches. Headaches can be divided into primary and secondary. Primary headache disorders are headaches without a direct cause. Secondary headache disorders are due to an underlying problem, such as a tumor, medication side effects, central nervous system infections, clots in the veins in the brain etc.
There are several primary headache disorders, over 50 different types. For example migraines, which usually a pulsating throbbing one-sided pain with nausea and discomfort in bright lights that lasts several hours. Another type is cluster headaches, which are sharp pains that occur around and behind the eye often at night and are associated with tearing of the eye and running of the nose. In primary stabbing headache, sharp or jabbing pain in the head occur, either as a single stab or a series of brief repeated volleys of pain. Primary stabbing headache often occurs in people with migraine.The pain itself generally lasts a fraction of a second but can last for up to one minute in some people.
Without further information about your headache, it is difficult to provide you with adequate information. However, it is important for you to understand that if you have not experienced headaches in the past and you are now having new head pains, seeing a neurologist is a good idea, just to make sure there is nothing serious causing this pain. If you provide me with more information about your headache (describe the type of pain, how long it lasts, where it is in your head, if you have other associated symptoms), perhaps I will be able to give you so more useful information.
Thank you for this opportunity to answer your questions, I hope you find the information I have provided useful, good luck.