Methadone activates opioid receptors in the brain, fully replacing the effect of whichever opioid the person is addicted to.
Buprenorphine activates opioid receptors in the brain, partially replacing the effect of whichever opioid the person is addicted to.
Naltrexone binds to opioid receptors in the brain, blocking the effects of opioids.