Distilled water doesn't contain any salt, so it doesn't have any ions which can help in carrying charge with them. Thus, distilled water can't conduct electricity.
Whereas tap water, salt water, and ocean water contains various forms of salts. Hence, these can be considered as electrolytes.