Call a gas man out to check this, probably the thermo couple has gone, or needs cleaning and resetting, this keeps the pilot alight, Does not need the electric supply to do this. Safety device, if pilot goes out gas will not flow.
Denis, January 2010