Remove the bedding, mattress and box springs from the bed frame.
Lower or raise the middle section of the bed if it is too high or too low. Metal bed frames typically have screws that you can adjust by hand to raise or lower a section of the frame.
Remove the middle slat if it is broken. This is a common occurrence in beds that have wooden slats running horizontally across the frame for support.
Measure the broken slat to determine its length and width.
Place another wooden slat of the same dimensions in place of the original slat. Lie the slat across the bed frame so that each end of the slat rests on either side of the frame. You typically do not need to secure the slat in place with hardware since the weight of the box springs and mattress will hold it in place.
Replace the box springs, mattress and bedding.