A basic nonlinear electromechanical model is developed for the interaction between a pre-existing near-saturated tearing-mode, a conducting wall, active coils internal to the wall, and active coils external to the wall. The tearing-mode is represented by a perturbed helical surface current and its island has a small but finite moment of inertia. The model is shown to have several properties that are qualitatively consistent with the experimental observations of mode-wall and mode-coil interactions. The main purpose of the model is to guide the design of a phase control system for locked modes (LMs) in tokamaks. Such a phase controller may become an important component in integrated disruption avoidance systems. A realistic feedback controller for the LM phase is designed and tested for the electromechanical model. The results indicate that a simple fixed-gain controller can perform phase control of LMs with a range of sizes, and at arbitrary misalignment relative to a realistically dimensioned background error field. The basic model is expected to be a useful minimal dynamical system representation also for other aspects of mode-wall-coil interactions.