We know that ionic compounds have more melting and boiling points than covalent compounds
Comparing NaCl and AlCl3. NaCl is more ionic than AlCl3 because ionic character depends on the size of cations. As here anions are same, more the size of cation, more the ionic character. Na+ has more size than Al3+. So the melting point of NaCl is much higher than that of AlCl3