What is a volume?

In case you have forgotten, volume is the amount of space that is enclosed within a container.

So, in simple term, the volume of a cube is the amount of space that is in the cube!
And the volume of a pyramid is the amount of space that is in the pyramid!