Thanks for writing your query..
After reading your post, it seems that you are having pain due to muscle spasm.
You should get yourself clinically examined by an Orthopedic surgeon and get properly investigated.
Get a MRI
of your neck and back done.
You can take pain killer like Ibuprofen
one tablet twice a day after meals along with an antacid
Hot fomentation and application locally of pain relieving gel will be helpful.
Avoid lifting heavy weights.
I hope this is helpful to you.