Ford Escort 1600 Zytec 1998 - Misfire - rosbif

Hi - I've a 1998 Escort 1600 Zytec that has started to run erratic. The problem started about 6 months ago. After about an hour of driving the car appeared to lose power (like it was on 3 cylinders) as soon as you put the accelerator to the floor it cleared and was OK. This got quite frequent and I realised that if I switched off the ignition and then switched it back on it cured it. I called in to a Ford agent in Matlock to get a part for my wife's Focus and mentioned this problem to the parts guy. He said it was a common fault and sold me a sensor which was fitted next to the water temperature sender. This didn't cure the problem. Before I forget, the temp gauge rarely reaches 1/4 way up the gauge except in town. The problem has now developed further and, now and again, the revs stay up (about 2-3000 rpm) when I change gear. Also when I start it up from cold the revs rise and then fall without touching the throttle. Mechanically, the car is in very good condition and goes like a 1600 should. It doesn't use oil or water. This is an old car and I don't want throw money at it on a 'suck it and see' basis. Has anybody had the same experience and could please point me in the right direction for curing this problem?