Most common causes for vomiting are stomach flu and food poisoning.
Stomach flu is usually accompanied by a fever and vomiting usually lasts 12 to 24 hours.
Food poisoning comes after eating spoiled food and is not accompanied be a fever. Lasts usually 12 hours.
Until vomiting stops try any of those:
Hold off on any solids until the vomiting stops
To fight the infection:
When vomiting stops:
Sources: