Original: The middle layer is called the myocardium and is composed of muscle which contracts.
Simplified: The middle layer is the myocardium. This is the heart muscle.