MR2 Died on me, and won't start. Help needed ASAP

ptu wiring harnesses? mine were loose and sometimes when turning itll cut out power…it either kicks back to normal or keeps cutting out/turns off and i have to then go under the hood and plug them back together.