The process of making yarn from fibres is called spinning.
When two sets of yarn are arranged together to make a fabric, the process is called weaving.
When a single yarn is used to make a piece of fabric, it is called knitting.
So, X is spinning, Y refers to weaving, and Z is knitting.