Firstly, in your question it would have been interesting to say that there were other parts with Tikz. Without other parts Code Mocker is right with the use of \parbox but you need to fix the width.
Perhaps it's possible to consider your question like a duplicate one : manual-automatic-line-breaks and you can also read the pgfmanual 16.4.3 Text Parameters: Alignment and Width for Multi-Line Text
I prefer to give another answer with some explanations.
If you put a simple text in a node, this text is written inside a \hbox. Inside this box, \\ is ineffective. If you want to be able to use linebreak you need to use complex objects like boxes, \parbox, minipage etc...
1) First idea like in the pgfmanual : tabular
\documentclass{article}
\usepackage{colortbl}
\usepackage{tikz}
\begin{document}
\tikz \node[draw,fill=blue!20] {
\begin{tabular}{@{}c@{}}
A\\
B
\end{tabular}
};
\end{document}

2) a box with \parbox but it's not perfect. You need to know the width of the rectangle
\documentclass{article}
\usepackage{colortbl}
\usepackage{tikz}
\begin{document}
\tikz \node[draw,fill=blue!20] {
\parbox{12pt}{\centering A\\B\\C}
};
\end{document}
It's also possible to use a minipage or a \vbox
3) text width is a node option but you need to fix the width like Claudio's code
4) the better one is the use of align=center like Claudio's code
\documentclass{article}
\usepackage{tikz}
\begin{document}
\tikz \node[draw,fill=blue!20,align=center] {A\\B\\C};
\end{document}