Liouville theorem for MHD system and its applications