Electric 3 function bed