Answer:
The figures are shown in the image attached.
Figure 1.
Notice that the figure is a cube with side of 3 cubes long. That means the total number of cubes that form the figure are

27 cubes in total.
Its height is formed by 3 cubes.
Its length is formed by 3 cubes.
Its width is formed by 3 cubes.
Figure 2.
The second figure has:
Its height formed by 5 cubes.
Its length formed by 1 cube.
Its width formed by 3 cubes.
Which gives:

There are 15 cubes in total.
Figure 3.
The third figure has
Its height formed by 3 cubes.
Its length formed by 2 cube.
Its width formed by 3 cubes.
Which gives:

There are 18 cubes in total.
Figure 4.
The fourth figure has
Its height formed by 1 cubes.
Its length formed by 2 cube.
Its width formed by 7 cubes.
Which gives:

There are 14 cubes in total.