Three main ways that infections get into the body are:
airborne infections: usually breathed in through the nose or mouth
wound infections: bacteria and germs entering the body through any open wound that may be exposed to the elements
bodily contact: diseases and infections spread through the exchange of bodily fluids between people.
Hopes this helps! :)