Heat and Cold . Applying heat and cold to your back may help. If your health care provider agrees, start by putting cold compresses (such as a bag of ice or frozen vegetables wrapped in a towel) on the painful area for up to 20 minutes several times a day. After two or three days, switch to heat -- put a heating pad or hot water bottle on the painful area. Be careful not to apply heat to your abdomen during pregnancy.