Throttle Position Sensor, Choke, E.G.R., MAF sensor, one or another among a few, could have gone bad.
Oh and Yes, a vacuum line has come undone or has eroded.
One or a hundred things could be...
Engines need 3 elements to run. Air, fuel, and ignition. Confirm all the components in the fuel delivery system are working correctly: Pump, filter, injectors. Then confirm you are getting spark to...