Vicodin works by binding to opioid receptors in the brain and spinal cord, which decreases the perception of pain. The hydrocodone component acts on the central nervous system (CNS), while acetaminophen enhances the pain-relieving effects and can also reduce fever.