The nervous system functions by transmitting electrical signals known as nerve impulses. These impulses are generated by neurons, which communicate with each other at junctions called synapses. The nervous system uses these impulses to control everything from muscle contractions to the release of hormones.