This sort of neck pain is common. Go and have a consultation with nearby physio.
He would assess and guide u accordingly.
Getting an idea on Internet is OK. But to get proper treatment u need to check doctor in person.
Next Steps
He would assess ur condition and accordingly, treat it. It would require some pain relieving modalities/or hand on techniques followed by exercises.
Health Tips
Don't try to treat it ur self by cracking neck and all.
At home u can go for hot fomentation. And neck movements in all directions gently. And then follow what ur physio offers..