Dental pain is never cured with medications only. Some objective treatment by the dentist is always required. Medications only provide temporary relief of symptoms. You have already waited too long and the problem has aggravated because of this delay only. Without any further information and going by the description that you have mentioned, it seems that your wisdom tooth has inflammation around it.
Next Steps
visit a dentist as soon as possible..... probably an x-ray will be required to diagnose the problem properly.
Health Tips
do not delay this problem until it aggravates further.