Could you explain why do my teeth hurt when I have chocolate?

Sweet pain. You probably have a cavity, broken filling, marginal breakdown around an existing filling, erosions, abrasions, abfractions, coronal fracture, etc. You may have more than one or a combination of these. See a dentist for an exam, s-rays and an evaluation. When was you last checkup?