A jail sentence has been imposed on a Wigan 20-year-old who twice threatened to kill or harm a woman and also attacked her.