Hm, stomach pain may be from intense muscular spasm. It could be just from anxiety, but, if you have some of below symptoms, it may be "organic".
Gastric disease goes with belching, burning sensation, heart-burn, dull pain in the miidle upper abdomen, often "spreading" upper, so also felt under the breastbone, it is worse after acidic food, wine, fruit juice, spices. Vomiting is not usual in gastritis or peptic ulcer.