\documentclass{book}
\pagestyle{headings}
\begin{document}
\chapter{Test 1}
\thispagestyle{headings}
Test
\chapter{Test 2}
\thispagestyle{headings}
Test
\end{document}

