Detective takes jury through defendant's phone records