Ion channels selectively allow ions to flow down their concentration gradient, either into or out of the cell. The types of ion channels present and whether they are open or closed controls the membrane permeability to ions, thereby regulating the membrane potential.