with the engine off look in the bay at your throttle body, open and close it manually a few times and listen out for the idle switch clicking. make sure it clicks off and on every time you open and close the throttle no matter how fast or slow you operate the throttle. if its a bit sticky remove the throttle cable and retry, if its better try adjusting the cable, set it so the throttle is just fully open when your foot is to the floor. if that still doesn't help change the cable.
next look at the wiring behind the throttle body, there is a 2 pin connector for both the idle and WOT switches, make sure the wires to this are ok. its common for them to snap back here. if it looks ok, start the engien then go back to the bay, open the throttle by hand slightly so engien revs are at around 1.5-2k rpm, then press the WOT switch on the top of the throttle body. the revs should drop, then rise back up again when released. if not, there is a break in the wiring to the TB, or the switches themselves are damaged.
note this test only confirms the wiring up to the 2 pin plug is ok, and the wot switch works. this doesnt check the idle switch which could still be broken, if you could reach underneath to press it then this would confirm the idle switch is ok, but its a bit tricky. you can use a multimeter to test it though, put it in continuity mode and touch the 2 pins on the tb. it should read an open circuit with the throttle off the stop, go closed at idle and closed at wot