Really a combination of weapons (first crossbows - not because they were super effective against knight armor, but because it was cheaper to train crossbowmen, then gunpowder for the same reasons. Knights were reasonably effective well after primitive gunpowder weapons.) and gradual decline of feudalism and thus knights as a class, as Monarchs started transitioning to standing/professional armies.
Also, as manufacturing improved, it became much cheaper to equip soldiers with standardized equipment rather than rely on tailored to the individual hand-made full-plate armor.
As always, the truth is somewhere between economics and cultural/tech shift.