The pain and stiffness in the neck are usually caused by excessive stretching or spasm of the muscles of your neck. They can also be caused by inflammation or swelling of the joints in your neck. The neck pain is sometimes caused by arthritis or by injury to the discs of your neck vertebrae or cervical disks.