For a substance to conduct electricity, it must have charge particles like electrons and ions within it that are able to move freely throughout it. In its solid state, potassium chloride (like many other ionic compounds) have fixed ions, hence, they are immobile and can't conduct electricity.