Most medications for osteoarthritis help ease your pain. They may also be anti-inflammatory. Medications usually block pain where it starts - in the brain. Although you may feel pain in a particular spot, such as in your knee, the pain messages come from your brain. Another way medications work is to prevent your body from producing chemicals that cause pain.