These health conditions can be prevented by leading a healthy diet and lifestyle, and by avoiding alcohol and smoking. If stomach pain is accompanied with other symptoms like nausea, vomiting, dehydration, fever, etc., make sure to consult the doctor immediately.