3D layers parented to each other and rotated... That's probably some stock project used there or some plug-in in an editing program. Izt looks rather crude and unfinessed....
> What's the easiest way to do this and what tools/effects needs to be used.<
Easiest is to hire a 3D animator. Applying rotation along an edge, or hinge, is a simple matter of moving anchor points. Linking the hinged layers to other hinged layers is all about parenting, another simple matter. Open the AE help system and look up both.
"Simple," of course, is relative in these discusssions. Ther's nothing easy or simple about AE's 3D environment but once you have that system of thinking perfect and in your head, hinges and parenting are easy.