The first one appears to be ungrammatical. The second one is not a complete sentence. Perhaps you mean "The gate was opened by the government" (though the situations in which a government would "open a gate" seem limited).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.