The heart wall consists of three layers: the endocardium, myocardium and epicardium. The endocardium is the thin membrane that lines the interior of the heart. The myocardium is the middle layer of the heart.