Anisotropic spin dynamics in semiconductor narrow wires from the interplay between spin-orbit interaction and planar magnetic field