As Rohan said they can both refer to a place where someone is staying, however sometimes they have slight different uses.
Residence is often used to describe a place where we leave long term or permanently.
For example: During lockdown everyone was advised to stay at their place of residence. (Here I mean home)
While, often accommodation can refer to a place we stay temporarily.
For example: Accommodation in Paris can be pretty expensive (here I mean, hotels, hostels etc)