from a circuit board, is this a resistor or a fuse?
Use a volt/ohm meter to test the fuse. Connect leads to each side of the fuse. With power off, measure ohms. Anything other than zero, you need to replace the fuse. or With power on, measure volts. Anything other than zero, you need to replace the fuse.
That is a current protection fuse. The one shown is a 3.15a 250v ceramic. Most boards or devices have the correct specs labeled for safety fuses, as the picture does. Glass fuses have their specs stamped into the metal end caps.