As a general rule nucleophillic substitution will go for tertiary haloalkanes and elimination for primary. Secondary halokanes will likely go by both. However these are broad strokes, it will depend on many factors including solvent, whether the reaction is intramolecular, nuclophillicity...