Hartlepool United recorded a third successive win for the first time since the beginning of last season, beating relegated Ebbsfleet 3-2.