Can’t share a file using my file sharing port

I’m using a windows 7 OS on my computer and I can’t share a file using my file sharing port. I encounter the server message block while I’m trying to share a file. I’ve seen forums using PING to check the connectivity of the file sharing. How can I check on what is the problem? Thank you for your response
