Check for clogged fuel injectors. Remove the fuel injectors and spray carburetor cleaner through the ports. If they are clogged, replace them.
Clean the throttle body. Remove the throttle body and clean it with carburetor cleaner. Pay special attention to the throttle plate and the idle air control valve.
Check the battery and cables. Make sure the battery is fully charged and the cables are clean and free of corrosion.
Check the ignition system. Check the spark plugs and spark plug wires. If they are worn or damaged, replace them.
Check the computer. If you have access to a diagnostic tool, check the computer for codes. If there are any codes, look up their meanings and follow the diagnostic steps to fix the problem.