Computuers used to be people who were hired for projects to do importaint calculations. They were even hired by NASA during the space race. The first modern computers were invented by Alan Turing. It was origionally a thought expirement about a machine that would take in an infinitly long line of tape with 1s and 0s writen on it. The computuer can take in instructions to move to the left number, move to the right number, or overwrite the number It's on. Turing could prove that this machine would be able to complete any task that you could give it. He started building the first electric computers which were used for dicription of secret codes during World War 2.
People used to be able to talk to computuers by inserting punched cards with binary code punched into them, which computers are able to read. The code would have taken a long time to write and was almost unreadable to humans. Eventually people decided to make a better way to code, so people decided to code a compiler in binar for a simpler language that people could actually use. This language was called assembly, and is still widely used today. Assembly is a low level programing language that that is similar to binar structually. This made programming a lot easier, but it still wasn't ideal. Eventually people wrote code that could compile into assembly code. This started the new wave of programming languages that that started as languages like Fortran, and today include languages like C, JavaScript and Python that almost all programmers work with.