First thing to always try is clean the throttle body and maf sensor.
The check spark plugs for oil.
Then check air filter.
Check coil packs are all arcing.
Check fuel is making it to the fuel rail.
That's all the cheap/free stuff.
After that its sensors (like cam sensor)
Filters like fuel
Blocked injectors
Wiring
Fuel pump
Idle control valve
Throttle position sensor
Vac leak
Etc
All the regular little bits and bobs