Hi there,
You didn't really mention the duration of the pain.
But by the symptoms you mentioned, seems like its acute pain abdomen which needs immediate attention.
Possibly, Acute Gastritis with Gastric outlet obstruction.
Next Steps
you need to consult a doctor and a thorough investigation can lead us to a clear diagnosis.
Health Tips
Do not eat anything if u r vomiting.