Some atoms are more electronegative.  This means that it pulls shared electrons more toward itself and, in turn, gets a negative charge.  The other atom(s) in the molecule are, then, more positively charged.  When a molecule is formed by unevenly distributed, shared electrons, it’s considered a polar covalent bond.