The distinction between vowels and consonants is based on three main criteria:-
physiological: airflow / constriction
acoustic: prominence
phonological: syllabicity
Sometimes, it is necessary to rely on two or three of these criteria to decide whether a sound is a vowel or a consonant.