As for the motor it seems like only one winding has overheated - burning the coating on the winding and ruining the motor.
As for the ESC, I've only had one ESC burn on me, and that was because I managed to get sea water into it. The issue may have been caused by a faulty ESC, or maybe an iron filing inside the ESC or something like that.