Check drivetrain alignment using methods on parktool.com.
Realign using info from same site.
If everything is fine, then drivetrain is worn and needs replacement.
Remember the general rule of thumb is chain and cassette are swapped together.
Good luck.