Scientists have isolated the gene responsible for teen pregnancy.