odometer works but won't engag when engine is turned on is that sensor problemm on 1995 Chevrolet 1500 Pickup

my odometer has been working fine but was having problem getting it to engage when engine turned on. had to play with shift lever or key to get it to come on but now that wont even work