Hello, Ibrahim,
Welcome to Moodle.
Word documents and PDF files should open for you, so we should be able to sort this out together. Let's see...
In a typical scenario, you would
upload the documents to your files area and would then create a resource linking to them. (See screen attached capture.) Is that how you did it?
Also, it might be helpful to know what error message you saw when you tried to open the files.
Thanks,
Art