I assume you have fuel, and that the car starts.[br]
Is it when you press the gas down? Because if so, it’s something to do with the throttle system. Maybe a bad/faulty pedal position sensor, something in the wiring, (hopefully not the engine computer), or the throttle body just not doing its job.
Consult these pages for more details:
https://cartreatments.com/car-wont-accelerate-symptoms-and-reasons/[br]
https://www.youcanic.com/guide/hyundai-wont-accelerate-due-throttle-position-switch-problem[br]
Good luck!