Neck has been hurting so bad.

I got a stiff neck (crick in my neck as some say) and it hurt so bad but it went away after 3 days. Three weeks later, I started waking up with really bad neck pain. During the day the pain would go away but at bed time when I’m still for a long time I could feel it start hurting again. Once I wake up and move around it goes away but the same thing happens every single day now. It’s been about 2 weeks now. I cannot stand this! I’ve switched pillows and it doesn’t work.

I do move moderately in my sleep