A muscle strain is an injury to the muscle tissue, while a sprain affects the tendon or ligament. Both can result in pain and limited range of motion.