Water can dissolve salt because the positive part of water molecules attracts the negative chloride ions and the negative part of water molecules attracts the positive sodium ions
Sound waves need a medium to travel through. That's why you cant hear sound in space. But you can see light in space and the sun heats up our planet, so yes, light doesnt need a medium to travel through.