Also, other problems arise when the balance of electrolytes (Sodium, Potassium, Chloride, Calcium, and Magnesium) gets disturbed. These are salts that conduct electricity. Kidneys play a vital role in maintaining a balance by filtering and removing excess sodium and potassium. These electrolytes play a vital role in heart function, muscle coordination, etc. Kidneys help process vitamin D, which in turn helps in the absorption of calcium and phosphorus in the body.