Electrochemical signals are generated by the movement of ions through specialized protein structures known as ion channels and ion pumps. When a neuron is stimulated, there is a rapid influx of sodium ions into the cell, followed by an efflux of potassium ions. This movement of ions generates an electrical impulse known as an action potential.