(An)Isotropic models in scalar and scalar-tensor cosmologies