There are a number of causes such as gastritis, acid refulx, or peptic ulcer disease that can cause gassy chest discomfort. However, if you are having other symptoms associated with this (arm pain, jaw pain, shortness of breath, nausea, sweating), you should seek further evaluation by a licensed physician who can perform a throughou history and physical examination to ensure your symptoms are not being caused by another condition (heart, lungs, etc.).
The underlying cause chest pain can be gastrointestinald disorders that includes ulcers, esophagitis, reflux or heartburn can also produce chest pain.
Alcohol, smoking, caffeine and spicy foods may contribute to these symptoms. Bloating from gas, esophagitis, reflux or heartburn can also produce chest pain.
Hope this helps, and thanks for sharing. Take care,
Ken