Why pressing F to join two vertices not work?
Actually, if I grab your top vertex and move it to the right...

here is what I have, which means you had some vertices overlapping:

In a bezier curve, a vertex can't be connected to more than 2 other vertices, so just delete these vertices and join again with F, or as pointed out by  vklidu, select all and AltC.