Pain while rotation of necknmay be related to some muscular or bony cause. Since it is there since so many days, tou should get investigated to find the reason for the pain..
Next Steps
You can start with hot fomentation, take analgesic with muscle relaxant tablet, apply analgesic ointment locally. Get one X ray of Cervical Spine..
Health Tips
Avoid heavy work, avoid jerky movements of neck..