Rpm niddle stuck on 7000 rpm

It was working but today it jumped back. I did plugs n wires coil, module n tested the tps is good v98 or 104 ,idle control was cleaned and tested. But with all that the rpm still dips down but jumps back to 900rpm .on park but on drive it dips down and up and shuts off .also I checked all vacuum lines. I think it might be the plugs but yesterday the rpm niddle was stuck on 7000rpm but the car idle was great for good while. Next morning back to the same problem.