ts.tanvirsolhel,
It depends on the seller. Is it an Apple store or other Authorized Reseller? If yes, you can assume it is new.
Otherwise, you might try to enter the serial number into the link below:
Check Your Service and Support Coverage
If the seller is an individual, make sure that they have released the phone as follows:
Turn off Find My iPhone Activation Lock
Good luck.