He may have detected that you're interested in more than just hooking up, and he's trying to back away slowly. His sudden lack of interest could signal he wants to end things, or that he wants to keep you at a distance. Either way, if he's not interested in more than sex, and you are, it's probably not a good match.