Car Starts then immediatly stops...help

If the ballast resistor has 2 wires going to it than its bad,if it's one wire in than the ign switch is defective.