Starts and then dies

If its wire right you will have direct voltage at crank and you should have at least Battery voltage on one side of your ballast. in run mode You could have a bad key switch. or wiring some were between.