Julia, sorry to hear about your problem. If you can provide more info, it will be easier for us to help.
You said your bed is a Craftmatic twin bed, but do you know the model number of your bed, or at least when it was made? Does it use wired or wireless controls? If the bed or remote require batteries, have you tried replacing them? And finally, is the bed plugged directly into a wall outlet, or is it plugged into a surge suppressor, battery backup, or UPS device?
The link below to the Craftmatic web site takes you to the page where you can download manuals for their beds in case you don't have access to a manual. If you haven't already read through the troubleshooting section, doing so is a good start.
Manuals Craftmatic Parts
Depending on your answers to the above questions, I may have suggestions for specific steps to take to find out wherein your problem lies.
Best of Luck!