The main difference between Cash and Accrual basis accounting is in the timing of when revenue and expenses are recognized.
Cash basis accounting generally recognizes revenue and expenses exactly when you receive or spend the money.
Accrual basis accounting is a method in which revenue and expenses "happen" earlier. In accual accounting, revenue is recorded when it is earned and expenses are recorded when they are incurred.
In accrual accounting, revenue is recorded when you create an invoice (even without receiving of cash). Income is taxed even if cash has not been received.
Cash basis accounting is more simple, because income is taxed only when cash has been received.