If you have a late 98 with VCT, it could well be the fault of the VCT solenoid and not the camshaft sensor. The VCT uses oil pressure to change cam timing.
The VCT solenoid might be open (infinite resistance) or the port on it can get blocked by varnish/sludge. Unplug the connector and check the solenoid with a meter. Good clean 5W-30 is a must. If the oil has not been changed on time, there could be gunk buildup in the crankcase/oil system keeping it from moving.