Jet engines are mainly axial flow engines, that is air is taken in the front. The air is then compressed (by the compressor blades), the air enters the combustion chamber where fuel is added and then ignited, the air is then forced out the back of the engine turning the turbine blades as the air exits the engine. It is important to realise that the turbine blades are directly connected to the compressor blades.
The turbine blades actually turn the compressor blades, so a jet engine for a given thrust setting is in a balanced situation where the fuel being used is sufficient to create enough hot gasses to turn the turbine blades. Which then is just sufficient to turn the compressor blades to provide enough compressed air to burn.
A very simple and clever bit of engineering.