what to do when someone has same name as yours and in IEEE search they show both peoples paper?
Yes, this is a very common problem.  


You should publish with the most complete version of your name possible (e.g. use your middle name.)  Think very carefully before changing your name (e.g. if you get married.)  
You should establish profiles with services that keep track of publications by author (including Google Scholar, Thompson's MyResearcherID, and ORCID)  and then "claim" your publications using these ID's.