First please go into detail abouot what ‘not working’ means.
If it worked before, it should still work.
Run this:
which bode -all
from a script or your Command Window.
The only results should be:
C:\Program Files\MATLAB\R2021a\toolbox\control\ctrlobsolete\bode.m
C:\Program Files\MATLAB\R2021a\toolbox\shared\controllib\engine\@DynamicSystem\bode.m % Shadowed DynamicSystem method
If anything else appears, such as indicating that ‘bode is a variable’, that is likely the problem. The solution is to rename whatever is causing the problem to some name that does not cause problems.