The space heater was running, but the wiring failed, shorted...
The space heater was running, but the wiring failed, shorted and caught the material on fire.
The space heater was running, but the wiring failed, shorted and caught the material on fire.