pyramid has either 4 or 5
A tetrahedron (4 faces) and an icosahedron (20).
tetrahedron (triangle-based pyramid)
It has 4 faces
A tetrahedron, a sphere or ellipsoid with three slices removed. There are other possibilities.
You can find a polyhedron with any number greater than 4 of vertices or faces. However, a torus, ellipsoid, sphere, paraboloid, hyperboloid are all standard shapes with no vertices. Cylinders, too, have no vertices. And there are many completely random shapes - a lump of putty, for example, which will have no vertex.
it is a 3D shape and has 4 sides
There is no such thing as a 3d triangle. A 3d shape which has only equilateral triangular faces can be a tetrahedron which has 4 faces or an icosahedron which has 20.
A dodecahedron (literally, "12 face solid").The "regular dodecahedron" has 12 identical faces, all regular pentagons ("5 sided flat shape").But there are many, many other 3d shapes with 12 faces, including the rhombic dodecahedron which has 12 identical faces, all 4 sided parallelograms.what shape has 12 faces?
Such a shape does not exits. See the attached link for all 3d shapes with 6 plane faces.
3d shapes with plane faces are called polyhedra (singular = polyhedron). The minimum number of vertices is 4, there is no maximum.