For the engine to rev like that it is getting a generous air supply from somewhere. Only three possibilities, idle control valve not working properly, throttle body valve stuck open or an air leak somewhere.
If the idle control valve is not working properly, the problem will more likely be with the control unit behind the offside rear light. Try pinching the pipe to the idle control valve with your fingers to cut off the air supply and see what happens.
Check that the throttle body butterfly valve closes properly and is not stuck open. Broken return spring, the butterfly could have worn into the side of the body or your accelerator cable is sticking.
An air leak means unmetered air, a very lean mix so watch out. Check all rubber pipes and seals for cracks etc. Don't forget the brake booster pipe.
You'll get it sorted.
