ESC's (electronic speed control) are all rated with a current spec - something like 5A (5 amps), 20A, 50A 80A and larger. What happens is when the motor gets 'loaded' - meaning the propeller is turning but resistance is encountered (like when you crash) the motor loads up or stops running and the ESC burns up - as it draws too much current. This is what happened to you - you hit the house, the ESC tried to keep the motor going, but the blades were not allowed to turn - thus, too much current. A bit more technical, ESC's use FET's (Field Effect Transistors), these are a very low 'on' resistance components and act sort of like a switch. When too much current is pulled they overheat and basically fry. There MIGHT be a little board connected to the motor wires - or perhaps the ESC's are integrated into a main board. If separate, you could replace the ESC if you could find one (hard to do), if integrated into the main board, you would have to replace the FET or the complete board. Either way, if you have not done things like this before, a bit difficult.
As per a few posts above this - TAKE YOUR TIME.. not knowing what is going to happen when you start leads to disaster in 90% of the situations. Read, and understand the directions and Tasks. I know, I sound like a preacher - and sorry for that, but crashing is not necessary - and in the worst cases (which happens a lot) it gives the communities a poor view of drones - this is why so many regulations are now in place and NFZ's. It's just unfortunate that people's privacy, crashes, and flying outside LOS causes so many issues - but it's a fact of life for a drone pilot.