"Discovered" is a loaded word—Indigenous peoples inhabited Ecuador for millennia. But in European terms, the Spanish were the first to arrive, claim, and colonize the territory now known as Ecuador.
Vasco Núñez de Balboa crossed the Isthmus of Panama in 1513, becoming the first European to sight the Pacific Ocean. He claimed the entire Pacific coast for Spain—including what would become Ecuador.
Francisco Pizarro launched his conquest of the Inca Empire from Panama. In 1531, he founded San Miguel de Piura (in present-day Peru) as a forward base. From there, his lieutenants pushed north into Inca territory.
In 1534, Pizarro's half-brother Gonzalo Pizarro led an expedition into the northern Andes. He founded San Francisco de Quito on December 6, 1534, atop the ruins of the Inca city of Quito (destroyed by the Inca general Rumiñahui to deny it to the Spanish). This became the capital of the Spanish Real Audiencia de Quito—the colonial administration governing modern-day Ecuador.
Before the Spanish, the region was home to the Quitu-Cara culture, the Inca Empire (northern extension, Chinchaysuyu), and diverse Amazonian societies. The Inca had conquered the area only decades earlier (late 15th century).
So: Balboa claimed the coast (1513); the Pizarros conquered the highlands and founded Quito (1534). The name "Ecuador" (equator) came later—adopted at independence (1830) for the equatorial line crossing the territory.