Ibuprofen. In my experience, the non-steroidal anti-inflammatories such as ibuprofen, Naproxen and such tend to do well for dental or bone pain. If this in standard dose and using all precautions for your own individual health, conditions, allergies, GI considerations, etc doesn't help you, then get seen by your dentist or oral surgeon. Infections have to be treated and you may need other treatment or care.
NSAIDS & others. Any anti-inflammatory medication can help. Aleve, motrin, advil and even a holistic alternative arnica. Tylenol (acetaminophen) is also good for pain. Seeing a dentist to remove the source of your pain is the real solution. The medications will only mask your pain. Also you may have deep decay or an abscess. Please call for a dental appointment asap. Dental pain is miserable. Extraction is a good solution.