... huh? Defining gravity is a deep topic, but for the purposes of this discussion, it's enough to define it as "the attractive force between massive, uncharged bodies." In order for the Earth to orbit the sun, there has to be an attractive force between them. And in your description, there is no such force. "Centripetal force" is not an answer, because that's just a label for any force that causes circular motion.