Since there is no gravity in space, earth's shape is mainly determined by the movement of the tectonic plates.By the way earth does not have any specific shape, its like a flattened ball with many irregularities scientists call the earth's shape to be a Geoid; which in greek, simply means 'earth shaped'.