Hello Angel_815,
Welcome to Apple Support Communities!
We want to help get the Touch Bar working as expected on your Mac again.
Use these steps to test if the Function keys work as expected, to help us isolate the issue:
"Function keys
Many macOS keyboard shortcuts use function keys (F1 through F12)—for example, F11 shows the desktop. On a Mac with a Touch Bar, function keys are shown in the Touch Bar.
- To show the function keys in the Touch Bar, press and hold the Fn key or the Globe key (depending on your Mac model) on the keyboard.
Make sure to customize the Touch Bar in Keyboard settings so the function keys are shown when you press and hold the key.
2. Tap a function key.
If a keyboard shortcut includes a modifier key, such as Option or Command, press and hold Fn or with the modifier key. For example, to use Control-F3 to move to the Dock, press and hold Fn or and the Control key together, then tap F3 in the Touch Bar.
See the Apple Support article Use the function keys on MacBook Pro with Touch Bar."
This Apple Support page has the full details: Use the Touch Bar on Mac - Apple Support
If the issue continues after a restart since you're using the latest macOS version, please reach out to an Apple Support Advisor for further assistance: Get Support
Cheers!