In pain what to do ?

I've been up all night can't sleep in pain ,I don't no weather to go to the hospital need some advice  please