Sending a message over the internet is a huge process, and the OSI model splits it into 7 smaller steps called layers. It's like sending a letter: someone writes it, someone puts it in the envelope, someone sorts it, someone carries it by truck. Each layer does just one thing and passes the result to the one below. So instead of understanding everything at once, you understand 7 parts one at a time.
The 7 layers are counted from the bottom up: layer 1 is the physical one (cables) and layer 7 the application one (what your program uses). When you send something, the data goes down from 7 to 1, like a letter passing from your hand to the envelope, to the post office and to the truck. On the other side it goes up from 1 to 7 until it reaches the app. A way to remember them from top to bottom: Application, Presentation, Session, Transport, Network, Data link, Physical.
Today the internet doesn't use the OSI model as is, but TCP/IP; still, OSI remains everyone's vocabulary. It's like a subway map: it isn't the real city, but everyone uses it to say where they are. If an engineer says 'it's a layer 3 problem', the others know to look at the packets' path, not the cables or the app. Also, since every manufacturer follows the same layers, a router from one brand understands a network card from another.
Going down the layers, data is cut into smaller and smaller pieces, and each layer gives them a name. The transport layer (4) cuts them into segments, the network layer (3) into packets, the data link layer (2) into frames, and the physical layer (1) sends them as bits, ones and zeros. It's like moving house: the house goes into boxes, the boxes into a truck, and the truck down the road. On the other side it's done in reverse until the message is rebuilt.
The network layer (3) and the data link layer (2) look alike: both move data. The difference is distance. Layer 2 carries data between 2 devices on the same network, like handing a paper to someone in the same office. Layer 3 carries it between different networks and picks the best path, like the post office sending a letter from Montevideo to Tokyo through several cities: that's routing. If the 2 devices are on the same network, layer 3 isn't needed.
The presentation layer (6) is the translator. It takes the app's data and leaves it in just the right format to travel: it translates it, encrypts it so nobody else can read it, and compresses it so it takes less space. It's like shipping a package abroad: you translate it into the destination's language, lock it, and squash it so shipping costs less. A 100 KB text compressed can travel as 20 KB.
The physical layer (1) is the one with things you can touch: cables, antennas, switches. There, data stops being letters or photos and becomes a row of 1s and 0s, the bits, which travel as light, electricity or radio waves. It's like Morse code: dots and dashes that someone on the other side turns back into letters. Both devices must agree on what a 1 and a 0 look like, for example 5 volts and 0 volts.