Chile stunned defending champions Spain 2-0 in their second match of FIFA World Cup 2014 and sent them crashing out of the tournament.