Replaced starter

air flow sensor location

replaced fuel pump and fuel filter now car has no spark coming from the coil there is gas in the lines

I removed the cap and the rotor fell off in the cap. Does the flat side of the stub mean anything as to how to position the rotor correctly?