How does stress impact the stomach, leading to pain and discomfort?

How does stress impact the stomach, leading to pain and discomfort?