What year is the car?

If it stalls and restarts, I'd lean toward crank sensor. Most of the time there's no codes, no symptoms other than the stalling issue. However you mention it won't crank, meaning the starter won't turn. If the starter won't turn then it's not a crank sensor issue. The only things that can keep a starter from turning in a 97-03 would be battery connections or soleniod wire. Battery connections could cause the car to stall as well. I'd pull both of them off, remove the bolt from the rubber boot, then pull the rubber boot off to inspect them. Clean those connections and put the boots/bolts back on.