Gas can make almost any part of your body feel at least one uncomfortable pain or another.
The biggest culprit of gas affecting your back is when the intestines are full of either gas or waste. This puts extra weight on the lower back because your intestines are expanded and pushing outward in every direction. This not only causes back pain, but can also cause chest pain.
Excess gas and rumbled intestines are directly reponsible for hospital emergency room visits from all of us who feel their wrath, and mistake them for something worse.
If your problem is new, I would wait a day or two before spending any cash on a doctor call, take an antacid or something designed to calm the digestive tract like Pepto or Malox.
If the problem persists, I would see a doc and go from there.
Prevention doesn't need an ounce of proof any more than disasters need a warning.