Middle back pain occurs below the neck and above the bottom of the rib cage, in an area called the thoracic spine. There are 12 back bones — the T1 to T12 vertebrae — located in this area. Disks reside between them.
The spinal column protects the spinal cord. The spinal cord is a long bundle of nerves that allows the brain to communicate with the rest of the body. https://www.healthline.com/health/middle-back-pain