Press the B Button (or the A Button) when underwater to swim. Use the Circle Pad to change direction and move in three dimensions.