You say that the power supply was making sparks?
And the hot end died?
You should check the wiring of your printer and look for short circuits.