Go to the Dentist
Many of us have experienced intermittent pains in a tooth that seem to go away by themselves if we rinse with warm salt water or brush and floss it really well.
These may be caused by local irritants. If the pains persist however i would recommend seeing your dentist. This may be due to an infection that requires professional help.