If the engine is FADEC equipped and you get a rundown with no fire, the system will try to salvage it as it spools down. If that fails, check the parameters very carefully 'cos it is trying to tell you that the engine is probably farked. Stall/surge would normally be detected by the system and indicated (Airbus). then there is a procedure to try and recover the engine.
Probably time to find somewhere to land - unless you are over the Ocean that is. If one runs down there - check you fuel crossfeed