Electric Problem

I have a 2008 Sportsman 500 HO carb. I have to unplug the harness that plugs into the ECM for the dash to light up and to start it. I purchased and installed a new ECM but had the same problem. I brought it to a mechanic and he found a wire that had come loose. It would start but the dash lights would still go on and off. I tried to start it today and its back to square one. I have to unplug the harness and plug it back in to start it up. When I plug it in (but not all the way) the dash lights up, but when I push it all the way in the lights go out. Any idea what I should do. Thanks, Neil