Preserving fertility in cancer patients

What is the determining factor for preservation of fertility? Why can some women get pregnant after treatment and others cannot or do not? Is fertility preservation based on what chemotherapy one is receiving?