can a cavity cause head pain