Digitalis works by inhibiting sodium-potassium ATPase. This results in an increased intracellular concentration of sodium ions and thus a decreased concentration gradient across the cell membrane. This increase in intracellular sodium causes the Na/Ca exchanger to reverse potential, i.e., transition from pumping sodium into the cell in exchange for pumping calcium out of the cell, to pumping sodium out of the cell in exchange for pumping calcium into the cell. This leads to an increase in cytoplasmic calcium concentration, which improves cardiac contractility.