Where is this problem coming from?

Ok well I found out that the main alternator wire was grounding itself to the back of it since there was no plastic spacer seperating it from the nut. But now that it runs and I let it run for 10 mins and when I turn it off and want to start it again its like completly dead now whats going on do I have the other wires on the alternator switched around cause whats causing this? Help please