It's fitting that this was posted in the Solved section.
The movie you're thinking of is
Pet Sematary.
Though I seem to remember it being a cat that was buried.
It was a cat and the film was
Pet Sematary as you said, Ash: I think the dog was buried in the sequel
Pet Sematary 2.