An IP address is like a house's street address: without it, the mail carrier doesn't know where to take the letter. Every connected device (your phone, your laptop, a server) has one, for example 192.168.0.10. When you request a page, the data travels in little pieces that carry the source and destination IP. That way, among more than 15 billion devices, each piece reaches the right machine.
Each bit is a slot that can be 0 or 1, and every extra slot doubles the possible combinations. With 32 bits, IPv4 gives 2³², about 4.3 billion addresses: fewer than the number of people in the world. It's as if license plates had only 3 letters: at some point they run out. IPv6 uses 128 bits, about 340 undecillion addresses, enough to give many to every grain of sand on Earth.
Moving from IPv4 to IPv6 is like changing the track width of every train in a country without stopping any train. Billions of devices, routers and programs have to understand the new version, and meanwhile the old one keeps working. IPv6 was introduced in 1998 and deployment began in the mid-2000s. More than 25 years later, both versions live side by side.
The number of addresses depends on how many bits each one has, and every extra bit doubles it. With 8 bits there are 256 combinations; with 32, about 4.3 billion; with 128, a 39-digit number. It's like adding digits to a combination lock: a 3-digit lock has 1,000 combinations, a 6-digit one has 1 million. That's why IPv6 won't run out of addresses.
An IPv4 address is 4 numbers separated by dots, like 192.168.0.10. Each number takes 8 bits, and 8 bits can count from 0 to 255: that's why no number in an IPv4 goes past 255. It's like a digital clock, where minutes never go past 59 because there's no room. 4 numbers of 8 bits add up to IPv4's 32 bits.
Data doesn't travel whole: it's cut into packets, little pieces of about 1,500 bytes. Each packet is like an envelope: inside goes the piece of data, and outside are written the IP of whoever sends it (source) and of whoever receives it (destination). Routers along the way look only at the destination to know where to pass it. A 3 MB photo travels in about 2,000 packets, each with its envelope.