PS3 displays message to connect controller

My ps3 I switched on the morning from playing it last night and now it won't do anything apart from on the TV screen it says connect the controller using the usb cable and then press PS button which I have done and all it dose is shows this message still what can I do