Heating a wire with DC current; why is it hottest in the middle?
There are two effects going on. The heat sinking effect of the connections and the temperature coefficient on the wire.

Initially the wire is all at the same temperature.

You turn the power on and it starts to heat up. 

The heating is determined by the electrical power dissipation in the wire, for any given section of the wire Power = Current * Voltage. All parts of the wire will have the same current. For a given length the Voltage = Current * Resistance giving Power = Current squared * Resistance.

Initially all the wire has the same resistance and so the heating is even along the length of the wire.

The heat flows from hotter to objects to cooler ones (this is the first law of thermodynamics). In this case the connection points are cooler and so heat flows from the ends of the wire to the connectors cooling the ends slightly. Since the very ends are cooler the bits of wire near them then cools a smaller amount and so on along the length of the wire.
This results in a very small temperature gradient across the wire with the middle slightly warmer than the ends.

Copper has a positive temperature coefficient of about 0.4 percent per degree C. This means that the warmer the wire the higher the resistance.

The middle of the wire is hotter which means its resistance increases. From the above equations this means more power is dissipated in the middle of the wire than in the ends.

More power means more heating in the middle than the ends and you get a positive feedback effect. The middle is hotter which means it has a higher resistance and more power is dissipated there which means it gets hotter...

This continues until almost all the power is dissipated in the middle of the wire, you never get all of the power in a single point because the heat conduction along the wire means that the sections near the middle also have reasonably high resistance. Eventually you reach an equilibrium where the thermal conductivity spreads the energy enough to balance the positive feedback effect.

The best example of a positive temperature coefficient is an old style incandescent light bulb. If you measure the resistance when cold it will be a fraction of the value you would expect for its power rating, they operate at about 3000 degrees and so the cold resistance is about 1/10th of the normal operating resistance when on. They are made of tungsten not copper, copper would be a liquid at those temperatures, but the thermal coefficient is about the same.