A Platonic solid is a convex polyhedron made of identical regular faces, with the same face arrangement at every vertex. The five are the tetrahedron, cube, octahedron, dodecahedron and icosahedron.
A square can form a cube because three right angles at a corner add up to 270 degrees and leave room for the faces to fold into space. Four right angles total 360 degrees and lie flat. This angle test helps explain why only a few regular polygons and vertex arrangements are possible.
A historical text may associate the solids with classical elements. Read that association as a claim about the text and its cosmology. Counting the faces answers the separate geometric question.