Your blood flows through the kidneys, which filter it. The water and wastes that are filtered out of the blood by the kidneys then flow into the bladder.
Eambos’ answer is correct. I would only add that between the kidney and the bladder, there is a thin tube called the ureter that transports the urine. This diagram nicely illustrates the connections between kidney, ureter and bladder.