Was the truck not getting spark, before or after the crank sensor was replaced ?
Was the old crank sensor tested, before it was replaced, or was it just replaced just for the sake of replacing it ?
If the crank sensor was not tested, then somebody is guessing.
If the crank sensor was tested, then the problem is in another area or component.
Check for fuel / fuel pressure, spark, compression, 3 basic things.
Scan computer for stored or active codes.