To use a 2002 3.5L in a 1998 you need to swap the intake manifold and throttle body, the ignition coils and boots, the head covers, the coolant manifold and the engine wiring harness. You also need to add a Knock Sensor and Camshaft Position Sensor. The engine blocks are identical so there is no difference in the location of the Crankshaft Position Sensor.