You need to enable the Loop Tools addon which is included with Blender. Then with both sets of border edges selected, you right click in edit mode go to Loop Tools > Bridge.
If that doesn’t work, what happens or what error / warning are you receiving?