Hi and welcome to HCM
From the description that you have provided, it seems that you have suffered a muscle sprain
. You need to provide rest to the neck- preferably use a cervical collar
. Avoid massaging the area. Doing a hot fomentation will be helpful. Avoid all overhead activities and do not use a pillow.
In case the pain is persistent even after taking a mild pain killer, then you might need stronger prescription medicines like muscle relaxants after consulting your orthopedician.
Hope this will helps you. Take care.
You can consult me again directly through my profile http://www.healthcaremagic.com/doctors/dr-saurabh-gupta/64132