DRR Scn Too Error Code P0340

98 DODGE STRATUS 2.5 v6

DBR Scn Tool Engine lights P0340

I ran the DDR Scn Tool on my engine I get

error code P0340 crankshaft sensor…

Do I have to change my Distributor

I replace the sensor, engine light still on

any ideard… Help