A tooth infection as long as it isn't too severe can go away on it's own within a few days.
If the tooth infections lasts longer than a few days you should go to the dentist because a tooth infection can cause other serious health problems including heart problems and potential heart attack.