(a) A jet engine combines oxygen from the air with fuel at high temperature. There is usually a spark to ignite the fuel vapor, but once the engine begins turning, it will continue running until it runs out of fuel or air.
A rocket, in contrast, carries both fuel (which may be solid or liquid) and oxygen.