The force of the floor pushing against the ball throws the ball back up into the air. The reason it doesn't bounce higher than where it started is simple: some of the ball's energy is lost as heat when it bounces, so it doesn't have as much going up as it did coming down.