Dear Kartik K Sharma,
Basicity is the strength of any anon or neutral molecule to abstract proton from acidic H. Or the basicity is the tendency to form bond with H or donate the lone pair electrons.
Anion is more basic than neutral molecules hence hydroxide ion is more basic than methanol.
Regards