Hi
It could be a case of gastroenteritis (gut infection) which has led to diarrhea and vomiting. The main symptoms of gastroenteritis are diarrhea and vomiting although one or the other symptom may predominate.
If the symptoms persist (>1 day), worsen or lead to other complications you should consult your doctor who could order some tests such as stool examination etc.
In the meanwhile take rest and drink lots of fluids to avoid dehydration.
Take care
Regards
Could you have eaten something that has caused it, do not eat anything today let your stomach have a rest' sip water so you wont get Dehydrated, just rest up and it will pass, if you still have pains tomorrow a visit to the Doctor would be good.