Hello, it may occur as a result of poor posture during sitting or lying down, but if it is accompanied by numbness or loss of strength in your arms .The main causes are muscle strains, worn joints, nerve compression, injuries or diseases. X ray, CT scan, and EMG can best diagnose this. If the neck pain is non specific it may be relieved by drugs. If it is due to some other causes then muscle relaxants, neck exercises and stretching, traction, short-term immobilization, steroidal injections and lastly surgery can relieve it. You can also have acupuncture, chiropractic, massage, and trans cutaneous electrical nerve stimulation to relieve the pain. Neck pains can be prevented by taking frequent breaks, avoiding tucking the phone, and sleeping on your stomach. Try these methods for a week, if it still doesn't subside you can consult your doctor. Thank you.