In vascular plants, phloem is the living tissue made up of small tubes which carry watery sap containing sugar and other organic nutrients to all parts of the plant where the nutrients are used for growth, or stored until needed. The sugar is made by photosynthesis. In trees, the phloem is the innermost layer of the bark, therefore the name, that comes from the Greek word φλοιος (phloios) for "bark".
The phloem also carries information but its main function is to transport the minerals dissolved in water. In some plants for example, if insects or animals are eating a leaf, other leaves become unappetizing and this helps to protect the plant from more damage.
Aphids (Greenfly) and other insects feed on the phloem by inserting a fine tube into the plant, penetrating the tiny phloem cells deep within the plant. The very high pressure in the phloem tubes forces the phloem sap into the insect. Most of the sugar passes right through the insect, so that nearby surfaces get sticky and often become black due to the growth of algae.
Water, which is absorbed by the plant's roots, travels up the stem to the leaf through the xylem. In other words this means that the xylem helps during photosynthesis by giving water and energy to the plant.