Password spraying is when you try one or more passwords that you have found for some accounts for other accounts in same or multiple other machines. Whereas dictionary attack is where you just use any dictionary to crack the password.
Thanks.
Password spraying: Use a discovered password across multiple accounts
Dictionary attack: Crack a single account by using a password from a password list.