X — Carbon; Y — Diamond and Z — Graphite
Since X exists in two forms Y and Z, they are known as the allotropes of X.
Given, Y is the hardest natural substance i.e Y is diamond. This implies that X is carbon, a non-metal and thus, Z is graphite, known to be a good conductor of electricity.