What do compasses do?
The red part tells you where north is and the white part tells you were south is.
How do compasses work?
Inside there is a magnet. The red part is the north pole of the magnet which is attracted to the north. The white bit is the south pole and it’s attracted to the south.