Multicomponent states for trapped spin-1 Bose-Einstein condensates in the presence of a magnetic field