The engine fell off because of the fire. But the wing continued to burn after the engine had fallen off. I'd recommend a read of Fire Over Heathrow by Susan Otway, Pen & Sword, Barnsley, 2008; ISBN 184415739-3 for the full story behind that accident.