Stomach pains

In my lower abdomen I’m having a really bad pain...almost unbearable...I recently asked a question about pain when I pee and a few people said I might have a UTI, I know it can cause a kidney infection if not treated so how do I know that it be my kidneys that hurt?