'Thief' is a general word. Anyone who steals something can be called a thief.
'Burglar' is much more specific: it is someone who enters a house, illegally and usually unseen, in order to steal another person's property.
NB You could have found this out from any decent English dictionary.