What could the pain in the back of my head and neck be?

See your doctor. It is difficult to answer this question, without truly assessing you in person. There're many reasons for headaches and neck pain. Therefore a visit to your doctor is really warranted.