Stepper motor losing its position

i am attaching an image for its size

Same approximate size as the ones I have. 9V (or 12V) and 1A is NOT sufficient, nor, as Robin2 points out, is your method of driving them.