The crankshaft angle sensor is located in the distributor housing. I have seen these sensors fail. The distributor often fills with oil and causes the sensor to fail. Oil in the distributor is a problem once the oil seal fails.
mine was on the tranny bell housing and cost about $64.00 color is blue and one bolt holds it on. if you look down at the fan and then at bell housing you cant miss it.
RepairPal Certified shops can diagnose and repair your 1998 Nissan 200SX. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.