Painkillers, or analgesics, work by blocking pain signals from reaching the brain or by interfering with the brain’s interpretation of those signals. There are various types of pain medications, each working in different ways. The most common include nonsteroidal anti-inflammatory drugs (NSAIDs), acetaminophen, and opioids.