Gas turbine functions in the same way as the Internal Combustion engine. It sucks in air from the atmosphere, compresses it. The fuel is injected and ignited. The gases expand doing work and finally exhausts outside. The only difference is instead of the reciprocating motion, gas turbine uses a rotary motion throughout.
This article details the three main sections of the Gas Turbine.