Why does my car not shift into over drive on 1997 Mazda Millenia

It will shift through the other gears but when it gets to the over drive it might shift and then there's days that it won't.

Asked by for the 1997 Mazda Millenia
Check transmission selector switch, would prob have to be taken to a transmission shop, usually they are inside the trans housing