You clearly did not ground a ground, or nothing would have happened. You short-circuited something with power. That ain't good, as you saw. It can do damage to any electrical component it was attached to.
Where to start....it could be a bunch of things but the best advice is what you've already received, go back and check your work. Something isn't connected to the thing it's supposed to be. Until you're sure this is right, don't connect power again. Check your circuits with a continuity checker before applying juice. A cheap voltmeter can be very helpful here
2014 Premium GT, SGM, Brembo, Auto, Tech, Comfort, etc. GT500s, Steeda UCA, VMP auto N/A tune. 100 shot nitrous on BBR tune. Best e/t 11.38 at 120.85
2012 Premium GT, Candy Red, Brembo package, 3.73, MT82, Comfort, Tech, et al. Procal tune, Roush UCA, UMI poly LCA, GT500s, Steeda red bracket, Hoosier 28x10x16 bias drags. Best e/t 11.91 at 115.23 RIP