Watch the TV programme currently on BBC 2 early in the evening. Other than that just apply to The Home Office in the normal manner. MI5 is also called The Security Service.
MI5 have a dedicated recruitment website which will tell you all about what jobs are available, the types of people they recruit and how to apply http://www.mi5careers.info/pages/homepage.asp