Imagine fitting puzzle pieces.
Pleating is the precise folding, like prepping fabric. Smocking, akin to adding intricate doodles, uses embroidery on pleats to create stretch and texture.
Both hold fabric in place, adding unique style, particularly with stretch and texture. (Source)