Engine stalls in gear

i had the same problem and come to find out one of the tabs, on one of the connectors to ballast was broke off, and it was plugged in backwards causing an extremely weak spark , and it would just die when i put it in gear, just something to check....