Undo Send option is available until 2 minutes after sending the message. So to Unsend Message you need to act within that timeline, after that time period passes you cannot Unsend the Message.