Mind games

Why do guys spend a lot of time with you, talk to you a lot, tell you they like you then become distant or shy away from wanting to become more serious?