I’m not understanding your description / details of the problem, so I’m going to go out on a limb here:
The refrigerator isn’t working correctly, but it’s not clear what the problem is.
Usually, one of two things happens to make a refrigerator malfunction:
1) It either stops cooling the contents at all, or
2) It builds up frost inside because (on modern refrigerators) the “self defrost” has stopped working.
If it’s the first problem, it could be that the condenser has failed, or the motor has quit working or something else has happened to make the refrigerator mechanically “stop working” – you’ll need someone to troubleshoot the problem and fix it for you (probably by replacing at least one component), and I can’t help you with that here.
Alternatively, if the refrigerator is frosting inside where it ought not to do that, or has avoided doing that in the past, it may be that the self-defrost drain lines have somehow gotten clogged, and the inability of the box to drain the normal condensation has caused it to freeze inside, which it should not be doing.
If the refrigerator has frosted up inside, then whatever else is done, it needs to be defrosted, because it can’t work properly if it’s lined with ice inside. It’s a paradox, but modern refrigerators need to be kept ice-free to work properly.
Continuing in that case, the best fixes are to examine the drain pan to make sure that it’s cabable of beind drained into (this will be a wide, flat pan at the base of the box, which is generally able to cope with “normal” drainage of condensate from inside the box, and which will then evaporate into the room – this is how modern refrigerators work. If the drain line is blocked, or if there’s crud on the pan that won’t allow the water to drain into it, then this needs to be cleaned. (If the drain pan is loaded with water, then that might indicate that the fridge has had a problem with too much condensate in the past. In that case, empty the drain pan and keep an eye on things – that pan in particular – as you watch the future performance of the fridge.)
It’s also possible that something has happened inside the refrigerator (or freezer) box to plug the inlet to the drain line (or to fall down inside that drain line) which prevents normal drainage. That needs to be taken care of: the drain needs to work.
The refrigerator’s condenser coils (exposed to room atmosphere at the bottom of the box on most modern fridges, or along the back side on somewhat older models) also need to be kept relatively free of cobwebs and dust (or pet hair) buildup. When they aren’t kept clean, then the refrigerator can’t adequately release the heat that it needs in order to do its function (that is, to bring heat from “inside” the box and release it to “outside”), and the appliance will work too hard, too continuously, and fail prematurely.