My wife has a 1999 Mazda 626 that had the transmission rebuilt 5 or 6 years ago. Recently the car started having problems starting unless it was shifted in to neutral. I replaced the neutral safety switch/transmission range sensor on it. That solved the starting problem, but a new problem has surfaced following that repair.
Often, though not always, the car will start in 2nd, and won't shift past 3rd gear. If you come to a stop and shift the car into park or neutral, then back in to drive, it will fix the problem (sometimes it takes multiple tries to get the car shifting normally again). If the car starts up and shifts normally, or if it is returned to shifting normally via the neutral/park trick, it will stay that way and shift fine so long as we don't take it out of drive.
I checked for ODB2 codes, and nothing came up. I've suspected that the sensor I replaced could be faulty, but considering it was a $40+ part I would like to consider other options first.