Car working perfect went to start it sounds like it's flooded or not getting spark
I will provide an honest answer. I trust this will be appreciated. Please remember that a low rating PUNISHES me for being honest and that I receive nothing for my time until a positive rating is clicked.
The vehicle is not starting because it is either not getting spark, or not getting fuel.
No spark would most commonly be caused by a bad crank sensor, bad main relay or bad engine control unit. Sometimes it can also be key or anti-theft related.
No fuel would be caused by a blown fuel pump fuse, clog/blockage/broXXXXX XXXXXne of some kind, bad fuel pump relay (if fitted), or bad fuel pump. Relay failures are quite rare, however.
Depending on your abilities and equipment/tools, you may or may not be able to diagnose further.
The simplest thing to do (after checking the fuel pump fuse) would be to spray quick start / starter fluid into the intake (carefully) while cranking. If the engine starts on this, then you have spark and the problem lies with fuel delivery and can be further traced from there.
Another check would be for power at the fuel pump, and to see if it is running or not. If power is present and it is not running, it is confirmed as having failed. If the pump is running, pressure may not be correct, so it also needs to be tested.
If I had to give a guess, I would say it is likely a bad fuel pump.
Sorry if you were hoping for a different answer, please don't shoot the messenger - I can only give the honest answer, which I have. Please remember that a low rating PUNISHES me for my honest and prompt response, and I receive nothing for my time and answer until a positive rating is clicked.Please let me know if you have further questions. Please do not forget to click a positive rating as this is the only way I receive credit for my answer, thank you. Best wishes with your vehicle.