Here are some tips that may help you avoid contracting/spreading infections:
Wash your hands often.
Cover your mouth when you cough.
Stay at home when you have an infection, so you don't infect others.
Ensure you avail of recommended vaccines (for example, flu vaccine).
Ensure that your children are up-to-date with their required immunizations.