I have a 2011 hyundai sonata 2.0t and it stalled on me and it won't crank and when I opened the hood it smelled burning wire or something. The car electronics turn on but the car itself don't crank.
No weird noise it just stopped.Was there any noise or sounds when it stalled?
Do you have a volt meter?
Measure battery voltage. Should be 12.5 or better
Do a visual inspection to see if that burning smell was any wires shorted out.
Check voltage at the starter .. ignition wire and battery to starter post cable
Try moving gear selector to neutral and starting engine
Look for the starter relay in the engine bay fuse box
Check youtube videos on how to test or do a by pass test on starter relay.