Ecuador produced a fightback to come from behind and beat Germany 2-1 in their final Group E match put themselves into the last 32 of the World Cup.