Colliders not working when used with a Rigidbody2D

So, I am stuck. I have a sprite that I want to put a Rigidbody2D and a simple box collider for testing purposes, but, whenever I go ahead and play the game, the sprite falls right through the ground. I tried removing the rigidbody so the sprite wouldn’t fall, and I placed a cube in front of the sprite. I tested to see if the collider will actually not let my player through, but it failed and my sprite was able to go right through.

Please help, I have no code for this one, I am just using it as it is.

Check again if your BoxCollider’s properties IsTrigger is checked, if IsTrigger, your gameobject will go throuht another collider, but you can detect this collision by script in OnTriggerEnter2d function.
more infomation

Another side, it’s maybe because your rigidbody turn isKinematic to true, gameobject would’nt recived collision