Outty wont start!

Hey guys,
So I have a problem… My 2010 Outlander 800 wont start. I’ll tell you what happened and then if anyone can suggest any ideas that would be great!
Okay so I had a light bar hooked up that I had wired directly to the battery with a wiring kit I got of Amazon.
The other day I just parked her and had the seat off and all of a sudden smoke started to run out of the bike giving me quite a good spook. I quickly figured out it was my wiring harness melting for some reason. The only thing I could think of doing was start wiggling the wires in hopes of it stopping, which it did after a minute or to.
When it was all done with that I unhooked the harness from the battery and light bar and tossed it out because it was quite a mess.
Anyways I was worried it may have done something to the bike so I turned it on and there was no problem! Then I took it for a spin and about 30-40 mins into the ride, the bike started loosing power. It would die down and then rev back up while backfiring until it eventually just stopped at the back of a field. I tried to start it again but it would only turn over, it would not fire up. When I turn the key I can hear the fuel pump making a noise but it is not the usual noise it makes so I’m not sure if it is working properly now… I tried to start it a few more times which led to the bike having no power at all.
I ended up getting it towed back home when I took the battery out and got it tested, it was dead so I got it recharged hoping that was my problem. Put the battery back in but sadly it still wont fire, it will turn over fine, it just wont catch, and the fuel pump is still making the weird different noise.
So thats my story, if anyone has any idea of what could have happened that would be great! I’m not the smartest guy when it comes to fixing things so the simpler the better.
Hope you guys can help!!
Thanks.