When a ball is released from a height, it will accelerate on the way down due to the resultant force (weight) acting downwards. Just before the ball touches the ground, the velocity of the ball is the maximum. When it hits the ground, the speed decreases to 0 m/s instantly. When it rebounces back in the opposite direction, the initial velocity is the maximum. Assume ideal situation (no air resistance, no energy lost to sound or heat). The ball will rebounce back to its original height.
In reality, there is work done against air resistance, energy converted to heat and sound when ball hits the ground, hence the ball will never reach its original height.
Note that in both situations, conservation of energy always applied. All energy is conserved, just that energy of the ball is converted to other forms like heat and sound.