The steps stop retracting when they reach the end of their travel and a circuit detects increased current. That circuit then shuts power off to the motor. There's a little gearbox connected to the arm that moves in and out to extend and retract the steps. Inside that gearbox is some grease, and it can dry out and lose its "grease" properties over time. (Ours did) Ours was sticking too, so I removed and disassembled the gearbox, then cleaned it and put new grease in it. It's been working fine ever since.
If you want to try that, be careful, because you have to support the steps when you start disconnecting everything, or you'll get some pinched fingers and a good knock on your coconut when the steps fall. (Trust me) When you remove and disassemble the gearbox, there are some washers that can fall off, so be careful about that too. It's not a difficult DIY job, it's just kind of difficult to get to everything, because it's all tucked up under the entryway. At least our was.
Kev