Our bed did this once. On the rear ceiling in the corner is a control box. Check and make sure the connections are in place tight.
One of the wires had come out, just a little, but enough to keep it from working.
Also, you may want to check the 12VDC fuse. If none of this helps, you will need...