Neck pain has many potential causes ranging from acute problems, like muscle strains and whiplash, to conditions that develop over time, such as cervical spondylosis (neck osteoarthritis) and myofascial pain syndrome. Pinched nerves, infections, fractures, and spinal cord problems are other possible reasons you may be experiencing neck pain.
Source: Verywell Health