What is a ternary form?

Ternary form is when a piece falls into 3 distinct sections using 2 themes

A B A

for example,

A the cat sat on the mat

B the fox watched the cat

A the cat sat on the mat

The above is an example of Ternary Form in text.