Before the wires are attached, the silicon wafer has other elements diffused in to it in patterns defined by optical masks, plus layers of oxide created or removed, more silicon or metal added etc. – again, all controlled by optical masks.
The end result is a 3D structure of insulators, conductors, transistors, resistors and other components formed within the depth of the silicon wafer itself.
The machines to do all that are massively complex and expensive….
A piece of plain, pure, silicon on its own may be able to be used as a single crude point contact diode or transistor, but that’s about it.
And ps. The silicon itself must be reformed in to a single large, perfect crystal before the wafers are cut from it.