Over-the-counter pain relievers, such as ibuprofen or aspirin, work by reducing inflammation and blocking pain signals. Acetaminophen works on the central nervous system to reduce pain perception.