What should I do if the positions of header, template and footer in the theme have changed?

Why did the positions of the header, template and footer in the theme change? Is there any way to change it back?