starting on 2004 Hyundai Elantra

car will crank but not start. have replaced plugs and plug wires. car died while driving hasn't started since

Asked by for the 2004 Hyundai Elantra
Need to find out what is missing when crank engine, fuel or spark. If shut down like shutting off light switch suspect ignition module. If coughed when shut down suspect fuel delivery problem.