Sherlock didn’t survive the fall.
At least not the one we saw. When he asked Molly to help him, it was to get in contact with her uncle, a stage magician who discovered the secrets of Robert Angier and uses a version of Tesla’s teleporter.
Sherlock used the teleporter to duplicate himself before going up to the roof to meet Moriarty. None of that was acting, and his grave isn’t empty.