A WordPress page or post contains the content. A template decides how that content is displayed. This post explains how WordPress templates work, when custom WordPress templates are useful and why custom functionality should sometimes be kept separate from the template itself.