How did Isaac Newton discover motion and gravity?

he discovered both because whilst discovering gravity he soon found the motion of the apple that fell to the ground