i have 98 cherokee it just dies going down the road

ive changed coil pug wires fuel punp now im told its the crnk shaft pos censor do you no what caues this im startin to sink alot of money in it do you have any ideas