Hi and welcome to the forum.....do people walk or play in this area? Be patient over the next day or so....you'll get some great replies.
The quickest and simplest thing that I can think of is to sink some concrete footings (with an eye hook) behind the fence and use a chain and "come along" to pull the fence back to it's original position.
Like I said...hold on...a bunch of the other engineers will help you out.
Good Luck!!!