CPR or CARDIOPULMONARY RESUSCITATION can restore function of the heart and lungs due to any condition that causes the heart to come to a stop. This usually happens after a massive heart-attack.