Hi Gophish,
Thank you for your explanation. I didn't wrote 1's to bits 5-7 of BRL and BRH so thank you for that, although it didn't fix the problem. The problem was that the Port Bidirectional Control Register was not written correctly for the SDA pin, and after fixing that it worked directly.