A muscle strain (pulled muscle) happens when muscle fibers overstretch, causing sudden pain, swelling, weakness, or bruising. Strains often affect the lower back, neck, shoulders, or hamstrings.