Third trimester is cautious for dental treatment, but if you had severe pain then management of pain is very essential. Sometimes its cause are gingivitis due to irregular food intake, hygiene issue and harmonal changes. In this condition oral prophylaxis give better relief.
In Impacted wisdom teeth pericoronitis (gums swelling) is the cause of pain; in this condition, curettage and irrigation if required then removal.
Sometimes deep caries is the cause of pain, in this condition root canal treatment or tooth removal is the treatment plan.
All of above mentioned condition sometimes required medicines but take only safer in pregnancy.
Next Steps
consult oral and maxillofacial surgeon because they know better management of pregnancy.
Health Tips
please take proper precautions in your situations like lead apron for x-ray.