Methadone works for heroin addicts by blocking or blunting the effects of opioid receptors, thus reducing withdrawal symptoms and cravings for the drug. It changes how the brain and nervous system respond to pain, blocking the effects of heroin and making withdrawal symptoms more manageable.