Surgery may also be needed to repair a chest that sinks in or sticks out. This prevents the chest from pressing on the lungs and heart.