1999 1/2 Pathfinder

#1

My 1999 1/2 Pathfinder(automatic trans) runs great.but occasionally it won’t start…and sometimes shuts down while it shifts or downshifts while driving.It starts up after I go under it and tap on the transmission with a hammer. I’m thinking loose wire or sensor in transmission. Any suggestions?