This pain can spread to the back and make you feel bloated and in pain there. Even small stomach problems, like stomach viruses, can cause severe gas pain. In certain cases, gastric trouble can lead to muscle pain.