Teeth hurt

I have braces and dentist dr. Took my top braces off and it starting to hurt a lot, was brushing my teeth three times a day.
What the cause of it to hurt? 
Is it cause I have a cavity?
What's ur thoughts 
Plz help