What's the best way to replace this sink supply line?
The broken supply line appears to be integral to the shutoff valve.  You will need to replace the valve with something like this



You may wish to consider replacing both of them and installing new flexible supply lines.