Flies aren’t important at all, if they were important spiders would never have been invented to rid the Earth of the fly scourge.
You’re thinking of Bees I think, as it’s bees that pollenate the Earth, and without pollenation = no oxygen.
Easy mistake I guess. Pollenating the earth & creating oxygen………………..landing on people’s dinner plates to take a big shit. Similar I guess.