Spain scored a dramatic late equaliser against England to make it 2-2 and then went on to win 4-1 on penalties in the final of the U17 European Championship.