It'll depend on the reason for toothache. But first I want to say that you should visit your dentist.
By the time you visit your dentist--
1. Brush your teeth twice a day
2. Floss your teeth once a day
3. Scrap your tongue once a day
4. Antiseptic mouth wash once a day
5. Rinse your mouth with salted warm water 3 times a day.
6. Take plenty of water
7. Eat balanced diet.
8. Visit your dentist once every 6 months.