There could be serveral reasons that causes that.
Go by step 1.(the cheapest way) first.If the sydrome exist proceed next step.
1. Free and lubricate the linkage and cable that connected the throttle valve.(use WD40)
2. Check distributor cap - if cracked, replace it. If oxide build up, clean the contacts with fine sand paper.
3. Replace spark plugs.
4. Replace air intake filter (engine).
5. Replace fuel filter.
6. Replace spark plug cables.