Boyfriend

My boyfriend is acting strange lately he said he only wants me and blah blah, but now all of a sudden he's distant i know he's going through some stuff but how can i make his mind get off of it? And he always wanted to have sex now it's like he never wants to even be touched.