It looks to me that you have developed neck muscle spasm or you can say sprain
in neck. I would recommend you to take myospaz and myoril tablet for muscle relaxation. Also apply hot water fomentation and Diclofenec ointment . Your pain will be ok in two days. Also avoid using very big pillow.