A wire that isnt big enough to carry the current will get hot and melt as will a poor /loose connection in a plastic block.

Is your electronize now dead ...or was it just a fire in the wiring?