What can cause this?

I woke up this morning and my stomach was hurting a ton.
I had diarrhea and then I almost threw up twice.  
Why does it hurt so much?