Hello and welcome.
-Which version of OS X?
-Which version of Microsoft Office/Word?
Most versions of Word allow you to re-anchor the toolbar by simply clicking and holding on the title bar section of the toolbar, dragging it into the toolbar area in the window of a document, and releasing the mouse/trackpad button. You can also rearrange the order and placement of the toolbars that are displayed there.
C