help with head unit

ok so the other day my head unit turned off buy its self turned out to be a fuse. so after checking everything and puting the head unit back in i lost the driverside speaker. when i was removing the head unit i burned my finger on the back of the unit. so what could make it so hot that its buning my flesh?
second question is what does this wire go to
[/img]
second question is what does this wire go to

[/img]