Is it better to use heat or cold for my back pain?

Both. Ice tends to be a bettter pain reducing modaltiy and heat tends to loosen up the muscles. Many patients do alternating treatments.