Most likely the problem with your trash compactor is a bad directional switch.
The complete instructions how to test and replace it you can find in the
technical data sheet.
- The part number for the directional switch
AP2984168
- Here are the break down diagrams for the Whirlpool trash compactor
Model TU8003XLP0
Gene.