Hyundai Repair Questions? Ask a Mechanic for Answers ASAP
There could be several different reasons why the engine cranks but won't start; intermittent bad signal from a crank position sensor, faulty transponder key, etc.
I recommend getting the onboard computer scanned to find out why the check engine light is on as the first step in our diagnosis - if you don't have access to a code reader or scanner, there are auto shops and parts retailers that will perform the scan free of charge. We will have a better idea of what to do next once we have that information.