Is it a mk2 16v?
Does the car rev past 2k and pull ok? If not check your cambelt timing, dizzy, then cam/cam, but before you take the inlet off check the Pins on the plug of the ECU for corrosion and check the TCI too, the ECU and TCI control the igntion timing on valvers.
Check your TB switch, that the mechanism makes good contact and you can hear it click when you open and release it too. To clean the tb, squirt carb or brake cleaner as ClipperJay said. I'd give the whole breather system a clean tho from crankcase breather pipe/inlet trunk.
Another test you could try doing is with a timing light, connect the clamp on the king lead and point the light on the inside bonnet to watch for a good pattern when the fault occurs. (i looked directly at the light

) When my TCI was packing in, there was gaps in the pattern so i knew it was an electrical fault.
Hope that helps a bit