Some moves make contact and some don't. This is a specific effect in the video games, so you can consult your favorite Pokémon database to find out for any specific move. You can often figure it out on your own, though, based on the name and Type of the move.