Fact 1: electrical current running through a wire causes that wire to heat up. 
Fact 2: When the wire is heated the length changes.
Running an electric current through a wire causes the length of the wire to change.