Why the record button is grayed out and can not work?

Because you are not allowed to record a call. Contact system administrator to grant you the permission if necessary.