1966 A904 loses all gears overnight

although you hear the detent inside the transmission when you move the shift lever you need to make sure it is actually moving the shift valve in the valve body. The other thing is the lugs on the front pump if they are broken off no pumping oil. You can check this by loosening one of the cooling lines to see if fluid comes out when it's idling.