Stop eating regular food for a day, stick to easily digestible foods, like dry toast, jello, clear liquids, saltine crackers. Keep drinking water so you don't get dehydrated. You probably had a stomach bug, maybe food poisoning, which is why you started vomiting. Your stomach needs time to rest and recover. Gradually add more of your regular food and see if you can hold it down.
You should go see your doctor. After that he might provide you with the good 'ole "creamy white butt pill". This pill inserted through your butt hole and goes through your system. It's easier than trying to take a pill by mouth to stop the nauseousness.