The engines require oxygen in the air to combust the fuel, and the wing requires air flow to create lift, but engine thrust does not work by pushing against air. A jet engine produces thrust because the heat released by combustion drastically expands the gases in the engine, which have nowhere to escape but out the exhaust in the back. So hurtling the mass of hot gases backwards causes an equal and opposite reaction (one of Newton's laws of thermodynamics, but I don't remember which one): the engine pushes forward, exerting a force on the mass of the plane.
When Robert Goddard spoke of one day using rocket propulsion for travel outside of the Earth's atmosphere, he was pooh-poohed by many who thought, wrongly, that even a rocket could not function in a vacuum like outer space because it had no air to "push" against.