Listen and practise. Notice that Yes / No questions usually have rising intonation and Wh- questions have falling intonation.