Restore custom firmware made with pwnagetool 3.1.3 or later.
What do you mean install MMS ?
All you need to do is make sure the settings in Settings->General->Network->Cellular Data->MMS are correctly set and you should be able to MMS all you want.
Only the original iPhone 2G can't do MMS in 3.1 but it might if the jailbreak app "ActivateMMS2G" is updated.
ActivateMMS2G should only be run on iPhone 2G devices.