Sperm cells are produced within the testes in structures called seminiferous tubules.
The epididymis is a duct which connects to the vas deferens (another duct); sperm passes through both structures.
The prostate gland is part of the bladder in males.