E. coli infections primarily spread through the consumption of contaminated food or water. Common sources include undercooked ground beef, unpasteurized milk and juice, raw vegetables, and contaminated water. Person-to-person transmission can also occur, especially in settings with inadequate hygiene practices.