Spin-lattice dynamics model with angular momentum transfer for canonical and microcanonical ensembles