This type of pain is usually localized, affecting just a few muscles or a small part of your body. Systemic muscle pain — pain throughout your whole body — is more often the result of an infection, an illness or a side effect of a medication.