2:07 AM
@StanShunpike "A" is a well-defined section of music: it may be use single theme, or a closely tied-together succession of themes, but it is marked by a clear cadential boundary. "B" is a contrasting section with its own clear cadential boundary.
The thematic material does not necessarily need to be different: Baroque binary form dances commonly use the same material in each section, but A is contrasted to B by moving from the tonic to a clear dominant cadence, whereas B moves from the dominant to a clear tonic cadence.
In ABA, (simple ternary) the materials might articulate a theme in the tonic, a contrasting theme in a different key, and a return of the first them in the tonic again. It is the articulation of clear sections that counts.
There are limits to this particular way of viewing musical form, needless to say. I used to see a lot of work that very neatly articulated all the As, Bs and Cs, and turned out square and lifeless as a result - we tended to call it cookie-cutter form.