Search deals using phone and email

I want to write a function that search for deals with perticular email and phone. if found then get that deals activity, where that deal is ,whats that deal status