If your speedometer is working, then the odometer/tripmeter should too, as they're fed off the same signal. So if the speedometer is working and the others aren't, it's possibly a physical problem inside the cluster.
The odometer is driven by an electric motor inside the cluster, and the tripmeter is fed off it by a little plastic driveshaft between them. The odometers almost never ever go bad, but tripmeters can be broken by resetting them while in motion (supposed to only do it while stopped.) The tripmeter might be preventing the odometer from working. It's not a big job to pull the cluster and separate them to see if the odometer will work again.
1995-up - remove the dash bezel (be careful prying it out that you don't damage the dash shell, or bump the hazard button with the bezel as it's easy to break, too.) Remove the screws holding the cluster in, and pull it out from the dash. Flip it over and you'll see there are 2 tabs on one end and 1 on the other, that you can release, then slip the cluster lens assembly off.
You must be registered for see images attach
Be careful to not touch the gauge face or needles if you can avoid it; the face is easily smudged and it can be tricky to get it clean again without leaving marks, lint, etc. you'll notice later once it's all back together.
Using a door panel tool, putty knife, etc. gently pry all around the edge of the gauge face. Note that it's a black sticker on top of clear plexi; be sure you're prying between the cluster housing and the plexi. Work all the way around it and you'll be able to lift the gauge face away from the housing.
You must be registered for see images attach
Note the odometer/tripmeter assembly is held to the back of the face with a few screws, and connected to the circuit board with a single ribbon cable. Pop that cable out and remove the screws, then you should be able to separate the tripmeter for your test. Note in this example the piece connecting the two is the red plastic. Your color may vary.
You must be registered for see images attach
Richard