The second position of the iron nail in the picture is different from its first position because of the magnetic effect of electric current. When current is passed through the copper coil, a magnetic field is produced and the iron nail gets magnetised and sinks in water.