IF a 2000 Chevy Tracker engine shut off while driving what could be the problem?

According to my mechanic, it has something to do with the cam shaft position sensor overheating.