The car will randomly go out of gear. I can be driving and all of a suddden it just revs up and doesnt accelerate. Sometimes I can either put it in neutral and turn it off and then back on and then when I put it in drive it will be in gear or I can stop put it in park turn it off and then when I turn it on it is ok. But here lately it is doing it more frequently and seems to be more when it is extremely hot outside. Also I can tell if it will shift or not by how it feels after I put it in drive. For example if it has happened and I stop and turn the car off when I take it out of park and put it into drive it will jerk slightly so I know it isnt going to shift but if it makes no jerk it will shift. But sometimes it will go into drive smoothly and then when I take my foot off the brake and put it on the gas it will jerk and then not shiff. Or today I was stopped by a train and I put the car in park while I was waiting and after about 3 minutes it jerked while in park and then wouldnt shift when I started driving. It also sometimes when I am braking to slow down the car will jerk then too going out of gear. It doesnt happen all the time and there are no codes coming up besides lean fduel so any help would be greatly appreciated. I was told by someone it may be the speed sensors but I changed both of those and no luck. Thanks so much.