My teeth hurt sometimes

My tooth hurts since last week.
I went to the dentist and was examined by a doctor.
The dentist took an X-ray of the painful tooth.
There was no problem with the nerve of the tooth.
There were no cavities.
The dentist said it was probably due to a bad bite.
The dentist adjusted the bite of the teeth.
The pain has subsided considerably.
But sometimes it suddenly hurts.
The dentist told me to wait a week or two and see how it goes.