用 and 并列,共享主词 he
前句是 过去时 had nowhere to live 表达 “当时”无家可居
后句时态必须一致,所以 was working in a pub 也表达 "当时“ 在一家 pub 工作