A method and device for discharging an electrical defibrillation pulse or an electrical demand pacer pulse or delivering at least one pharmaceutical agent to treat conditions such as cardiac arrest, bradycardia, arrhythmia, cardiac standstill, PEA, EMD and other heart conditions are disclosed. The pharmaceutical agent can be delivered into the heart tissue, the heart cavity, or the peritoneal cavity. The pharmaceutical agent can also include analgesics such as morphine. Also included are pharmaceutical agents used to increase myocardial contractility or inhibit platelet aggregation and vasoactive intestinal polypeptide (VIP) and thyroid hormones such as T3 and T4 can be delivered. A method for the treatment of cardiac arrest or pulmonary hypertension patients by administering a therapeutically effective amount of vasoactive intestinal polypeptide is also encompassed by the invention.