Idle is controlled by the idle air control valve. There's a list of how different ones work
here. If it's vacuum controlled you should check that line or if it's electric, check the wiring. It might be possible to clean it to restore function or it might have to be replaced as well. It's possible to troubleshoot and check that is the problem, procedure varies on the type.