Ordinary wrenches are not easy to work in tight spaces such as sinks.
At this time, you can try to use Qiuertes sink wrench, a wrench specially designed for repairing and replacing water pipes in narrow spaces.
You can screw the nut on the water pipe.