Electrical conductivity is the movement of charged particles.
In this case, charged particles means either delocalised electrons or ions.
These particles need to be free to move in a substance for that substance to be conductive.
Covalent compounds do not conduct electricity because there are no charged particles that are free to move.