A morgue is for the temporary storage of corpses, often in a hospital. Bodies are kept in morgues until they are identified, claimed, or until autopsies are performed.
Mortuary is sometimes used the same way as morgue--a hospital may call it's morgue a mortuary--but it can also be used to describe a funeral home.