Did you disconnect the RCA leads before you started disconnecting/reconnecting the power cables? If you accidently touched the positve lead against the earth then its quite likely it'll send the current back down the head unit to blow an earth track inside. Have you got another head unit you can try?