Sherlock didnt die,he only faked his suicide
But if he was supposed to die then why did moriarty record specific clips that appeared in the final problem?
Because Sherlock is his reason for living. The reason he wakes up every morning is simply just to f**k with Sherlock. There is no point in being a villain if there is no one to fight against.