Let $A \in WFF_{FOL}^\Sigma$ be an open formula, ie. it has occurrences of free variables. How do you transform this formula into a closed formula $B$?
It is my impression that you do this by adding, for each free variable in $A$, a universal quantifier to capture that variable. e.g., if $A = \exists x R(x,y,z)$, then $B = \forall y \forall z (\exists x R(x,y,z))$, and $A ↔ B$. Another example; $A = \exists x R(x,y) → \forall x P(x,z)$, $B = \forall y \forall z (\exists x R(x,y) → \forall x P(x,z))$Since all the quantifiers that you add to $A$ are universal, I also think that the order that you add these quantifiers in does not matter.
Logical Equivalence?
It turns out that, with the definitions that I am working with, translating an open formula to a closed formula yields a closed formula that is satisfiable in the same structure as the open formula. Logical equivalence is a special case of this. If you are working with other definitions, it may be that you get logically equivalent formulae by translating from open to closed formula.
Definitions ($A$ and $B$ are formulae, $M$ is a structure, $v$ is an assignment)
$A$ is valid iff for all structures $M : M ⊨ A$
$B \Rightarrow A$: $\forall v. M \models_v B → A$
$B \models A$: $\forall M. \, \text{if} \, (\forall v. M \models_v B) \, \text{then}\, (\forall u . M \models_u A)$
If $A$ and $B$ are closed formulae: $B \models A$ iff $B \Rightarrow A$. (This does not hold, in general, for open formulae.)
$A \Leftrightarrow B$ iff $A \Rightarrow B$ and $B \Rightarrow A$ (logical equivalence)
Can be useful to know the textbook you are using.
I'll refer to Herbert Enderton, A Mathematical Introduction to Logic (2nd - 2001).
The axioms are [see page 112] :
If the language includes equality, the usual axiom for it are added.
Modus ponens is the sole rule of inference.
The basic definition [see page 88] is :
Consider now the formula $\varphi := x = y$.
We have :
Thus, using modus ponens :
and, by soundness :
But $x = y \nvDash \forall x (x = y)$.
To show this, consider an interpretation with domain $\mathbb N$ and let the number $0$ assigned to $x$ and $y$; clearly we have that $0=0$ is true and $\forall x (x = 0)$ is false.
Thus, by the above definition of logical implication :
Note. Considering your symbolism, we have found $\mathcal M$ and $v$ such that $\mathcal M \nvDash_v B \rightarrow A$.
Comment
Some authors adopt "restrictions" in order to prevent this kind of "unpleasant" situations.
See Dirk van Dalen, Logic and Structure (5th ed - 2013), page 67 :