Some banks allow you to reinstate a DD which has been recently cancelled. Most of them would need a call to the bank to set it up again.
If you have any issues then use this form
(However, I do think your bank will reinstate it. Mine did last week when I made the same error)
Welcome to the forum
*The Game Is On*
Customer service can also set you up with a direct debit if you give them a call Guide: How to find help & contact O2
Track usage, upgrade and get support with the My O2 appDownload My O2