It's unlikely the wobbling was related. If the fan is super old, it could be a problem with a motor. If your fan isn't ancient though, it's almost certainly going to be the chord. People tend to pull the chord too hard and that breaks the switch that it's connected to.