Hello, gas problem & stomach pain seems to be slow digestion/ inflammation of stomach or so.Proper case history would be needed to cure your problem permanently.
Next Steps
Try taking easily digestible foods such as khichdi, curd, fruits. Avoid taking oily , spicy / junk food.
Health Tips
I believe nothing to worry about outcome of your problems. Its treatable.