The nervous system controls muscles and glands by electrical impulses.
somatic nervous system
The brain is the part of the peripheral nervous system that controls glandular activity and the muscles of the internal organs.
The nervous system is responsible for regulating body activity by transmitting signals between different parts of the body. It controls functions such as movement, sensation, and coordination, as well as higher cognitive functions.
The heart controls all activity and function of viscera. The heart is located in the autonomic nervous system.
The autonomic nervous system regulates the involuntary action of the lungs. The parasympathetic nervous system controls the smooth muscles in the airways and helps to slow down breathing. The sympathetic nervous system can also influence lung function in response to stress or exercise.
Nerves
The Digestive System's muscles are controlled by the Autonomic portion of the brain which also controls breathing , heart beat , temperature control (i.e. sweating or shivering), etc.
The Skin controls the activity of the eccrine sweat glands.
By your nervous system
mid brain regulates the endocrine system. hypothalamus (part of mid brain) connects with pituitary gland , known as master gland (it controls secretion of hormones from other endocrine glands)
The efferent division of the PNS carries signals from the central nervous system to the muscles and glands to control responses. It consists of the somatic nervous system, which controls voluntary movements, and the autonomic nervous system, which regulates involuntary functions such as heart rate and digestion.
Nervous tissue is the main component of the two parts of the nervous system which are the brain and spinal cord of the central nervous system. It is also the main component of the branching peripheral nerves of the peripheral nervous system, which regulates and controls bodily functions and activity.