A man whose dismembered body was found in a suitcase had raped and blackmailed a teenager, a court has heard.