Geothermal energy from abandoned oil and gas wells using water in combination with a closed wellbore