An engine no start can be from numerous culprits. Obviously check for any engine codes first (as you stated above). A defective fuel pump can still pump gas to the engine, the pressure will just be extremely low or the fuel pressure regulator can fail, and cause instant bleed back to the tank. Also check the rotor before your buy a distributor, they are mostly plastic and can sometimes brake or get deformed.
Certified ASE Auto Tech.