check whether email is there or not in lead object ...if lead exist means convert to contact and account if it does not exist means it sholud be contact using apex class ...send code in only apex class..
if we create new record in lead object email it should convert to account and contact .does not create means it should create new contact in apex class