You have dental caries
which causing pain
. You need RCT or extraction of your carious or infected tooth. You have yellowish teeth due to deposition of stain & calculous. You need scaling for clean your teeth. After scaling your teeth will be natural white colour. Consult to your dentist
for clinical diagnosis & needful treatment.