Door locks don't work with the remote or key & hazard lights dont work either... on 2004 BMW 325i

We cannot lock the car at all as when we do it won't unlock. The hazard lights stopped working so I dont think it is a key problem. Fuse? Suggestions please.

Asked by for the 2004 BMW 325i