Small molecules that are uncharged can move directly through
the membrane in the direction of high concentration to low
concentration. Molecules that have a charge (positive or
negative) it will tend to move to the side of the membrane
that have the opposite electrical potential.
Proteins role in this is through forming channels through
the membrane that facilitate transfer of the molecules
in accordance to the electrical and chemical gradients.