hello & welcome
most probably u are suffering from pericornitis. This is a type of infection caused by partially erupted wisdom tooth.
in such cases only painkillers are not sufficient you have to do an antibiotic course including Amoxycilline 500mg TDS, Metronidazole
400 mg TDS , Ibuprofen
400 mg TDS, & warm saline rinses.
Than visit to your dentist
as soon as possible and go for a check X-ray.