Bad stomach pains (not related to pregnancy or periods)

I have had a pain in my stomach for over a day, diarrhea, and feeling like I have to throw up but can’t throw up.

What can I take to help this?