Greetings, sorry about your pain. When you say pain, it is a symptom. So we need to find the cause. Without finding the cause if pain medications is given then it is symptom treatment only which will fail ultimately.
Next Steps
consultation with a physio specialist in trigger point therapy and posture correction will definitely cure your problem. you can give ice and take hot water bath to relieve muscle tightness.
Health Tips
avoid lying on painful side. for any more consultation feel free to contact me.