As a side note, whenever we talk about melting points, structural symmetry comes into play. More symmetrical molecules pack into the crystal lattice better thus allowing attractive tendencies of molecules to dominate (facilitated due to a closer approach between molecules)1. As a rule of thumb, as packing efficiency increases, melting point increases. A similar reasoning is given whenever we're to compare the melting points of trans and cis-2-butene.
For instance, let's say you're planning to go to a nice long vacation (ask me, I'd say to Hawaii). But you've decided to carry just one suitcase for the trip. Being a chemist, your love for chemicals is intense, and you've decided that you'll either carry butane or iso-butane for the trip. But which one? More chemicals means more fun, you say. Thus, a molecule with higher packing efficiency would be a clear winner in this scenario. Butane wins this game because it has a symetrical structure and you would be able to "stack" those molecules one over the other which accounts for its higher packing efficiency. Butane thus would have a higher melting point. Data supports our speculation; melting point of butane is $-140 ^\circ \pu{C}$, while for iso-butane it's $-159.6 ^\circ \pu{C}$.
Longer chains can also mean larger molecular masses, which in turn lead to an increased london force between the molecules, leading to an increased melting point.
Further, a branched molecule doesn't always mean a decreased melting point. Take for example the case of pentane and 2,2-dimethyl propane. The latter has a more "compact" spherical shape, which allows it to pack better into the crystal lattice, resulting in a significantly higher melting point.
$
\begin{array}{|c|c|}
\hline
\pu{Compound} & \pu{Melting point (in ^\circ C)} \\ \hline
\pu{Pentane} & \pu{-130 ^\circ} \\ \hline
\pu{2,2-dimethyl propane} & \pu{-71 ^\circ} \\ \hline
\end{array}
$
References:
- Organic Chemistry, Joseph M. Hornback