A primary school in Sedgley has been closed due to a fault with the fire alarm system.