Niclas Fullkrug came off the bench to earn Germany a hard-fought draw against Spain and keep their World Cup hopes alive.