Two lanes of a major North Yorkshire road were closed and traffic was stretching back for miles after a crash earlier today.