Was there a diode on the back of the motor? It usually is a small black cylinder with a silver or white band on one end.
If it is there, that is what cooked your ESC. The end with the band always has to connected to the positive wire of the ESC.
An example picture can be seen here:
http://www.teamnovak.com/How_to/schottky/Schtky.htm