Maybe a duplicate of How does an assembly instruction turn into voltage changes on the CPU?.
Or since you're asking how 0/1 get into the computer in the first place, early computers had front-panel switches which could literally connect a logic input to the power supply rail or ground, directly giving a low or high voltage. This retrocomputing question has pictures.
On more modern machines, we have keyboards that work by making or breaking electrical connections, pulling input pins high (e.g. via a pullup resistor) or low (connected to ground) in the keyboard controller.
We also have computer memory that works by outputting a low or high voltage as data in response to signals on address lines. For example, one of the simplest kinds of programmable ROM (PROM) is programmed by essentially "blowing fuses" in the chip. i.e. melting wires that connect the bit for that address to the supply voltage. So when you read it by driving the address lines low or high, you get a low or high voltage output on the data pin.
More modern memory technologies are just fancier versions of that. e.g. electrically eraseable PROM or flash. Or volatile SRAM / DRAM that will hold data you store to it, but loses it on power failure. An SRAM cell can be built out of a few transistors.
On bootup/reset, the CPU has a hard-coded address that it reads code from ("jumps to"), the reset vector. It will fetch bytes from this address and decode them as instructions. Hard-coding that reset vector into the CPU is just a function of how some wiring (or silicon paths) are connected. That, and some code in ROM, are all you need for a computer to bootstrap itself and load more code, e.g. from disk or whatever. (CPU talks to disk controller with I/O instructions, or the disk controller can DMA data into RAM for the CPU to read.) Obviously communication of data busses involves electrical low and high voltage levels corresponding to logic 1 and 0 bits, or some more complex encoding.
All this electrically-programmable stuff is great, but how did it all start?
You can physically build memory by hand, instead of electrically programming it. For example, the Apollo Program's guidance computer used rope memory. https://en.wikipedia.org/wiki/Core_rope_memory. I found some videos of how their memories were built, encoding hand-written machine code by wrapping wires one way or another, by hand.
Other early computer memories included punch cards or paper tape, and stuff like https://en.wikipedia.org/wiki/Drum_memory.
Punch cards could be punched by hand, and a punch card reader would mechanically turn the pattern of holes into patterns of low and high voltages / bits that the CPU could read with I/O instructions.