Hi all,
This issue is related to Message Center post MC1094117. If you log into the M365 Admin Center and read the text of this post it will explain how to re-enable the functionality.
The issue in this thread is also related, Teams missing GIF option in messaging | Microsoft Community Hub.