My car turns over but won't starts up at times what's wrong? on 2003 Hyundai Sonata

It has also cut off on me while I was driving thought it was the fuel pump got that replaced and I'm still having this problem

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
2 answers
It could be any of 12 or more things. Depends if it has spark or fuel. This would be something that would need to diagnose. If you want us to check this out please call 313-562-7022 or schedule an appointment on line at StansGarage.net. I am sure we can diagnose it and give you the answer you need.
Larry
DO YOU HAVE ANY ENG CODES?