Short answer: No direct chat or cross-platform online play exists between Nintendo DS and 3DS.
Certain games support local wireless (ad-hoc) between DS and 3DS family systems because the 3DS includes a DS-mode wireless radio:
For chatting: Use a phone app. For playing DS games online today: Wiimmfi (DS) or Pretendo (3DS) via homebrew. Official services are permanently discontinued.