If embryonic testes properly produce testosterone, but a genetic male nevertheless develops female external genitalia, the cause could be a mutation in the gene that codes for the testosterone receptor.
Mutation of gene means, change in the sequence of DNA (deoxyribonucleic acid). A genetic disorder is a condition when mutations occurred in one or more genes.