Word on Windows
Go to File, then Save As, pick a folder and set Save as type to PDF. Or use File, Export, Create PDF/XPS Document.
Word on a Mac
Go to File, then Save As, and set File Format to PDF. Then click Export.
Word in a browser
In Word for the web, go to File, Export, then Download as PDF. The PDF lands in your downloads.
Word on iPhone, iPad or Android
Open the document in the Word app, tap the three dots (or the File menu), then Export or Save as, and choose PDF. Save it to Files on an iPhone, or to your phone's storage on Android.
No Word at all?
Open the .docx in Google Docs and use File, Download, PDF document, or open it in Apple Pages and use File, Export To, PDF. Or paste the text into Create a document and make the PDF here.