Neck strain occurs when a muscle or tendon is stretched or torn. Tendons are tissues that connect muscle to bone. Twisting or pulling these tissues can cause a strain. Strains can happen suddenly or develop over time. Back and hamstring muscle strains are common. Many people get strains playing sports. Symptoms include pain, muscle spasms, swelling and trouble moving the muscle.