Here are some practical tips to get the format right for an expository essay:
Understand the purpose of each major section
Outline the whole essay
Proofread and edit
The structure is not always rigid