I think you should make an appointment with a dentist as soon as possible .You can take painkillers like ibuprofen or Paracetamol to help relieve the pain. You need urgent drainage of the pus from the abscess and, if necessary your doctor may need to remove any teeth that have been damaged by the infection. If left untreated the infection can cause osteomyelitis and sepsis. Schedule an appointment soon. I hope it helps.
Best luck and regards!