I am writing my thesis and are trying to set the line spacing. I have tried using both setspace, linespread and onehalfspacing commands, but it only seem to affect the first page of the report. I have also tried to delete the summary and preface, but still nothing happens. Can anyone help me, what am I doing wrong?

My main looks like this:
\documentclass[pdftex,14pt,a4paper,twoside]{extbook}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[english]{babel}
\usepackage{multirow}
\usepackage{graphicx}
\raggedbottom
\usepackage[backend=biber,style=authoryear, autocite=footnote]{biblatex}
\DeclareFieldFormat{title}{#1} %Endrer sktift i tittel bok
\DeclareFieldFormat{journaltitle}{#1} %Endrer skrift i tidskriftstittel
\DeclareFieldFormat[article]{title}{#1} %Endrer skrift i artikkeltittel
\DeclareFieldFormat{booktitle}{#1} % Endrer skrift i tittel til konferanse
\DeclareFieldFormat[inproceedings]{title}{#1} %Endrer skrift i artikkeltittel til konferanse
\renewbibmacro{in:}{} %Fjerner In foran tidssktiftstittel og konferansetittel
\addbibresource{references.bib}
\nocite{*}
\input{docsetup.tex}
\begin{document}
\begin{spacing}{1.2}
%% PART 1
\pagenumbering{Roman}
\input{summary.tex} %% Optional
\input{preface.tex} %% Optional
\input{list.tex} %% Generate TOC, list of tables, and list of figures automatically
\input{abbreviations.tex} %% Optional
%% PART 2 -- The Chapters
\pagenumbering{arabic}
\input{chapter1.tex}
\input{chapter2.tex}
\input{chapter3.tex}
\input{chapter4.tex}
\input{chapter5.tex}
\input{chapter6.tex}
\input{chapter7.tex}
\input{chapter8.tex}
\input{chapter9.tex}
\input{chapter99.tex}
%% PART 3
\input{references.tex}
\input{appendix.tex}
\end{spacing}
\end{document}