Kidney infection or UTI ?

seven11

I have been having headaches, bad back pain , and frequent ruination . All started together ? Current 16 weeks .