The basic idea behind a turbine is similar to a windmill
Windmills utilize the velocity of the wind to generate
power.
A turbine is like an enclosed windmill; since it is enclosed it can extract power not only from the velocity, but also the pressure (and temp.) of a gas flowing through it.