Esp warning light

Hello I just turned my car on and had a ESP warning light come on and my traction control said it was turned off and then when I pressed the button nothing worked I drove a mile down the road and turned Car on and off and it was fine
What was this about ?

Many thanks
Adam