Yep, like said above, it is likely to be due to your bulimia as stomach acid does cause ulcers and damage to your mouth and teeth. Really with the pain being in your teeth you need to get checked out by a dentist to make sure no damage has been done and the earlier that is done the better so they can help to lessen it.
Using a cream such as bonjela on the ulcers may help or you can discuss this with a pharmacist. The best thing though would be to reduce the amount you purge, ultimately that'll be the only thing that will help so getting help for your ED is going to be a big thing and may be what a dentist also suggests (they actually diagnose a lot more bulimics than GPs do). Seeking professional help could come from seeing a doctor and getting referred or some local community centres do offer counselling which may also help. Contacting the supporters at
support@recoveryourlife.com or via live help may also help but they are not a replacement for professional help.