It may be as simple as a UTI. Which you need to confirm with your doctor as antibiotics will be needed. Other wise this can also occur due to kidney stones, blockage of the urinary tract, etc.
But with your testicles also having some pain, there may be an infection or due to pressure. Either way, do see your doctor tomorrow for further in person evaluation.
Here is a site that gives the causes for this too. Click here
Hope this helps, If you need anything else please feel free to ask. If you found this helpful don't forget to click the *ACCEPT* button and leave *POSITIVE* feedback.