It may be you have some pressure in your work or school. Not enough sleep.
Neck pain will also affect to have headache. If you have hypertension and not control well , it will induce to have headache. Some brain disease will have this sign and symptom.
So, I think you should go to hospital to have body check up first.