I'm confused

Okay please no rude comments I'm just looking for an answer 
But I went to the bathroom to pee and there was blood in my underwear but it was like a pink color but it was just in my underwear not in my pee or when I wiped so what could it be and I've been having sharp pains in my lower back and stomach 
I didn't know were to post this soo