How language is used as a tool for communication?

Well it's how one communicates. You use language to convey your ideas into text, and that is the basis of communication.