The type of energy your looking for is geothermal energy.
Explanation:
Geothermal energy is energy that comes from deep within the earth, From such things as magma or heat. In California at the Geysers there is a Dry Steam Power Station which uses geothermal energy in order to make energy. The way that works is Steam rises to a turbine which spins a generator that produces energy.