Dear Lybrate user,
I think you have deep carious or grossly decayed or root stump or any infection
or pulpitis in your teeth. Which is causing pain
. You need RCT or extraction of the decayed teeth. After these treatment your problem will be cure soon. You should consult to your dentist
for clinical diagnosis and needful treatment.