The ATP molecule is formed by one nitrogen base (Adenine), one sugar (ribose) and three phosphates.
The center of the molecule is the ribose, with adenine attached to its one side and three phosphates attached to its other side.
The chemical bonds between the sugar and the phosphates are very rich in energy which is why ATP is one of the main sources of energy in the cell. By breaking the phosphate bonds energy is released and ATP is dissolved into ADP and P (adenosine diposphate and phosporus).