How do I repair cruise control? on 1997 Jeep Grand Cherokee

cruise control comes on fine yet it refuses to engage and when it does engage it works for a few seconds and disengages. Check engine light is on and code reads p0121. transmission shifts late or will not shift into overdrive.

Asked by for the 1997 Jeep Grand Cherokee