The cam sensor tells the computer where your cam is in it's rotation. The info is used to determine spark timing and fuel delivery. If it's bad, you'll run rough or not at all. Vehicles with distributors will sometimes integrate thet sensor with the distributor. Otherwise, it will be located near the cam.