Hello Bob,
A few things to look for........
If you have those after-market bolt-on replacement ends on your battery cables, they can loose connection. Take them apart and clean them up if so. If not check the neutral safety switch on the firewall to make sure it moves up and down when the shifter is moved back and fourth. More difficult things next, but check these first.