Based on details i learn that you have R) sided headache with neck pain
of short duration.This can be due to cervical myofascitis (inflammation of fascia and muscle), or can be due to vascular headache
, or due to structural lesion in brain.
You should visit neurologist/ family physician for clinical examination to make sure the cause of headache and CT scan
brain to rule out structural lesion in brain.
Hope this would help you