"Text" refers to any body of written, printed, or spoken material, the actual words of a literary work, or a message sent electronically.
It can also be a metaphor for anything that can be "read" or interpreted, such as signs, clothing, or urban design.
In the context of communication, "to text" means to send a written message, often via a mobile device.