is energy conserved when a ball falls to the ground
Of course. You've certainly heard that energy is conserved, period. Why would you think it's different when a ball falls to the ground ? ?