Identify the button in-game
In CS:GO Legacy, open the Keyboard and Mouse settings, select an action and press a side button. The two extra buttons usually appear as MOUSE4 and MOUSE5. Use the label shown by the game because the physical layout and mouse profile can vary.
Check the old binding before replacing it
In the console, enter bind MOUSE4 or bind MOUSE5 without an action to see the current binding. Save the original command. For push-to-talk on MOUSE5, enter bind "MOUSE5" "+voicerecord". For a regular jump on MOUSE4, enter bind "MOUSE4" "+jump". Test your chosen action in practice.
Check why the button is not detected
If the game shows a keyboard letter when you press the side button, check your mouse software profile. The button may be sending a keystroke. If the binding disappears only after restarting, check any CFG you load for another binding on the same button.
Restore the old binding
Use bind to assign your saved command again. If the button was unassigned before, remove the new binding with unbind MOUSE4 or unbind MOUSE5.
Questions and answers
Is MOUSE3 a side button?
MOUSE3 usually means pressing the wheel. Scrolling up and down are separate inputs called MWHEELUP and MWHEELDOWN.