Cam Ward led four straight touchdown drives to rally No. 8 Miami from 25 points down to beat Cal 39-38 on Saturday night.