Born with a dick and balls? You are either male or a hermaphrodite. Probably a male.
Got a vagina? You are probably female. No a doctor inverting the inverted scrambled remains of your penis does not mean you have a vagina.
Unless you have a one in a billion deformity it is fairly straightforward.