Build a box out of 1 cm cubes. First make the bottom layer: 5 cubes along the length and 4 across the width, a rectangle of 5×4=20 cubes. Now stack more layers on top. If the box is 3 cm tall, there are 3 layers of 20, so 20×3=60 cubes fill it. That is the volume: 60 cubic centimeters, written 60 cm3.
This is why the formula comes in two forms. V=l×w×h multiplies all three edges at once. V=B×h says the same thing in layers: B is the area of the base (the number of cubes in one layer) and h is the number of layers. The order does not matter, so 3×4×5 is also 60.
Covering a box is different from filling it. Wrapping paper covers the outside, so you add up the areas of the 6 faces and get square units, cm2. Filling the inside counts cubes and gives cubic units, cm3. For the same box, the bottom face alone takes 5×4=20 cm2 of paper, while the inside holds 60 cm3.
Think of it like this. Filling a box works like counting the rooms in an apartment building. Every floor has the same number of rooms (the base area), and the number of floors is the height. Rooms per floor times number of floors counts every room, just as base times height counts every cube. That only works because every floor of a box is the same size.
Core idea. The volume of a rectangular prism is length times width times height — the count of unit cubes that fill it.