What makes a planet habitable

Which of Earth's features were essential for the origin and sustenance of life? And how do scientists identify those features on other worlds?