Flies can spread these diseases by coming into contact with contaminated food or surfaces and then transferring the pathogens to humans when they land on food or surfaces that humans come into contact with. It is important to practice good hygiene and sanitation to prevent the spread of diseases carried by flies.