I think there are 4 arrangements
1. armature wound direct onto the axle. This was used in early electrification but isn't used now, I think. See Central London Railway locos.
2. Axle hung. One side of the motor is attached to the axle and the other to the bogie. So half the weight is unsprung...