Former co-chairwoman of the Conservative party Baroness Sayeeda Warsi, who was born in Dewsbury, has called for a general election following the resignation of Liz Truss.