The sonata allegro form was used in the first movements of symphonies, concertos, sonatas, and quartets during the Classical era. It has three main sections - the exposition, development, and recapitulation. The exposition introduces musical themes in the primary key and a contrasting key, while the development builds tension through modulation and theme manipulation. The recapitulation then resolves the musical ideas by reprising the themes in the primary key.