Imagine that the two atoms are playing tug of war with the electron, but one is pulling with a stronger force than the other. This inequality results in the majority of the rope being pulled toward the stronger atom. In the bond, the electron is pulled closer to the stronger atom too. This results in each side having a partial charge, one being more negative than the other.