How to set page numbers for front matters similar to main matters. Main matters header need to have chapter title also. Not added in MWE. Front matters must have only page number as in main matters of MWE.
%
\documentclass[12pt]{scrbook}
\usepackage{scrpage2}
\usepackage{amsmath}
\usepackage{graphicx}
\title{Your Paper}
\author{You}
\begin{document}
\frontmatter
\maketitle
\tableofcontents
\mainmatter
\pagestyle{scrheadings}
\clearscrheadfoot
\ohead[\pagemark]{\pagemark}
\chapter{First}
\section{Introduction}
Text
\section{Some Examples}
Text
\subsection{Sections}
Text
\clearpage
\subsection{Tables and Figures}
Text
\end{document}