On starting up, the compressor is driven by an electric motor and draws in air. When it reaches the combustion chamber at a certain pressure, the liquid fuel (kerosene) is finely sprayed into it and the mixture is ignited electrically. The expanding gas passes through the turbine, driving the blades and rotating the shaft which drives the compressor, thus ensuring that the engine turns continuously. The gas then expands in the nozzle, providing the engine thrust.
Diagram of a turbojet. Credit General Electric.