How long does it take before the medications take into effect for a tooth infection?

Varies. Sometimes the impact of antibiotics is nearly immediate and sometimes it takes a few days. If things aren't improving after 4 or 5 days, a different antibiotic may be necessary.
Usually24 hrs. This could take longer depending on the type and severity of the infection and your general health. Some antibiotics are more effective then others.