It was found that two different spin states of the A-like phase can be obtained in aerogel sample. In one of these states we have observed the signal of the longitudinal NMR, while in another state no trace of such a signal was found. The states also have different properties in transverse NMR experiments. Longitudinal NMR signal was also observed in the B-like phase of 3He in aerogel.