@gharshini maybe you forgot to set the montage for your raw
object? That is, the object doesn’t know about the locations of the EEG electrodes?
Please read this thread, and my answer at the end of it, it may solve your problem as well: Problems to interpolate channels in EEG