Energy, in physics, is the capacity for doing work. The kinetic energy of an object is the amount of energy it possesses due to its motion. Potential energy of an object is the amount of energy that is stored in it at rest. Even inanimate objects have potential energy due to gravitational pull.
If you are holding a glass, it has potential energy and if you drop it, it falls due to gravity, creating kinetic energy. The relationship between these two types of energy is motion.