Examine the spring that pulls the derailleur arm back. If my memory serves, there are a couple of hooks that the end of the spring attach to. The spring may have come unhooked.
If you decide that you need to replace the derailleur, a Shimano Tourney should serve you well. You'll want the version with the claw that attaches to the rear axle.