Since Oxygen is more electronegative in H2O, it will have a partial negative dipole. Na prefers to give up one electron to for a +1 ion and achieve a noble gas configuration. Negative attracts positice. Hence, the Oxygen in the H2O molecules will be attracted to Na.