Electrolytes are chemical compounds like salt and potassium which facilitate the moving of electricity through your muscles. Without it, no muscle contractions. And your heart is a muscle.
They are a chemical substance that turn to ions in the proper solution, and can conduct electricity. We need them because they help our cells to function. A severe imbalance can actually kill us.