If the bed is on the slide, more than likely the mechanism is under it. If not then it should be outside in the under belly.
I would check for voltage at the switch first.
Screw under bed for adjustment see if it has electric stops
probably a long strip of rubber
You need to get to the motor and see if there is power going to it in both directions. Does it sound like the motor is running but nothing moving?