People always ask what to do when they have acute back pain. There are many answers depending on the exact nature of your problem but one thing people forget about is that pain is a perception and not a thing.
One common way of looking at how you perceive pain is to visualize your nervous system being like a telephone exchange. When a signal comes into the spinal cord it is prioritised according to the speed it comes in at, it’s intensity and what other competing signals are arriving at in roughly the same time period. Sensations , such as temperature(hot or cold),vibration, auditory information etc, arrive on insulated nerves and move at a fairly quick pace. Pain travels on uninsulated fibres and thus tends to arrive less quickly and can be blocked out by the faster signals that arrive first. A perfect example is a toothache that you hardly notice all day as you are bombarded by other information yet it is felt as a pounding toothache once you get into bed. Once the other signals are absent your nervous system becomes focused on what is left and you perceive the remaining pain as much stronger than you might have during the day. This is one reason why so many treatments have a short term effect that reduces what you feel yet don’t really get rid of the underlying problem. If you put on a heat rub/ice pack, have a massage, use a TNS machine then you will have some relief but only as long as the effect of the treatment remains. If there is still an underlying irritation it will all come back until you have dealt with the thing that is irritating your body in the first place.
The simple answer is when you first have an attack of back pain the best thing is to find a comfortable neutral position (usually lying on your back with your legs up on a stool/couch or on your stomach with a couple of pillows underneath) and apply any form of treatment that provides an alternative sensation to help settle down how much your nervous system is focusing on your back pain. Once you have had a day or so to let things settle then you have a wide choice of treatments that might help depending on what has gone wrong. With acute attacks many things will help including manipulation, massage, exercises and possibly other treatments such as acupuncture.
In the long run, you are best to calm your back down, have some form of treatment to settle your back further and then go back and focus on the things that really matter. Most back pain occurs because of bad habits, poor posture, trauma or working too long at something your body does not tolerate well. If you learn to take care of yourself better in your day to day activities you will find you have less (or maybe no) attacks and be better prepared to get on with your life.
Best of luck with taking care of yourself!!