Brushing your teeth can definitely keep toothaches away, or help with overall sensitivity if you are brushing with a fluoride toothpaste, but it will more than likely not solve the issue of why your one tooth is hurting.
It the pain remains. I would recommend seeing a dentist in order to get to the root cause of why that tooth is hurting. Teeth usually hurt because there is some sort of inflammation occurring, either internally in the pulp and nerves or around it at the periodontal ligament.
I hope this helps!
As a general rule of thumb, brushing your teeth does not help a toothache to go away. However, it does help if your pain is caused by something lodged between your gums and your tooth or if you have something irritating your tooth that you can remove. Also, you may get the effect of the ingredients in the tooth paste to provide temporary relief.
Hope this helps.
Best of luck to you!
William F. Scott IV, DMD