\documentclass[twoside,a4paper,10pt]{book}

\usepackage{nameref}
\usepackage{titlesec}
%\usepackage{hyperref}

\begin{document}

\tableofcontents

\chapter{Showing Nameref Problem}

\section{Hello World Section}\label{ms:1111}

\section*{Hello World Star Section}\label{ms:1211}

This is ref to the numbered section: \nameref{ms:1111}.\newline
This is ref to the unnumbered section: \nameref{ms:1211}.

\end{document}
