Energy storage motor stores energy back and forth