With a GameCube Action Replay or a GameShark — those are the two devices that let you enter codes for the title.
Both work by loading code files onto a memory card and applying them at boot, so you will need the device, the right code set for your game's region, and a version match between code and disc.
Region mismatches are the usual reason nothing happens. If a code set silently fails, that is the first thing to check.