If your earphones are plugged in, the notification sound would be sent to the ear phones. When they are not in, it would go through the main speaker.
When you don't hear it, are the earbuds plugged in?
Also, be sure your notification sounds are set correctly in Settings > Sounds.