What does it mean when a guy you like all of a sudden stops talking to you?

okay this guy I liked was my friend.And he'd spin me ,hug me ,and etc. then all of a sudden it stops. I don't no what happened everything was great now its sh*t ? what do I do ? :(