Should I go to the dentist?

basic

Every time I eat anything sweet or chocolatly all my teeth hurt I’ve changed toothpaste for one for sensitive teeth but it hasn’t help recently the same has been happening when I eat fatty foods. What could be the cause of this?