Remember when you bring home a new pup there should be a period of adjustment.He may have been potty trained and crate trained but he was uprooted from his mom ,siblings and all the sights and sound of his first home.
Be consistent it takes time.
congrats welcome to the wonderful world of yorkies