A witness claimed he heard a girl say “I don’t want to” and “I’m too drunk” before she was allegedly raped in York, a jury was told.